freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-480-the-last-questi...

56 lines
1.9 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

---
id: 5900f54c1000cf542c51005f
challengeType: 5
title: 'Problem 480: The Last Question'
videoUrl: ''
localeTitle: 问题480最后一个问题
---
## Description
<section id="description">考虑所有可以通过从短语中选择任何顺序的字母形成的单词thereisasyetinsufficientdataforameaningfulanswer假设15个字母或更少的字母按字母顺序列出并从1开始按顺序编号。列表包括1a 2 aa 3aaa 4aaaa 5aaaaa 6aaaaaa 7aaaaaac 8aaaaaacd 9aaaaaacde 10aaaaaacdee 11aaaaaacdeee 12aaaaaacdeeee 13aaaaaacdeeeee 14aaaaaacdeeeeee 15aaaaaacdeeeeeef 16aaaaaacdeeeeeeee 17aaaaaacdeeeeeee 17aaaaaacdeeeeeeh ... 28 aaaaaacdeeeeeey 29aaaaaacdeeeeef 30aaaaaacdeeeeefe ... 115246685191495242euleoywuttttsss 115246685191495243euler 115246685191495244eulera ... 525069350231428029ywuuttttssssrrrDefine Pw作为单词w的位置。将Wp定义为位置p中的单词。我们可以看到Pw和Wp是逆的PWp= p和WPw= w。示例W10= aaaaaacdee Paaaaaacdee= 10 W115246685191495243= euler Peuler= 115246685191495243找到WP军团+ P量热计 - P歼灭+ P精心策划 - P飘飘。使用小写字符没有标点符号或空格给出答案。 </section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler480()</code>应该返回turnthestarson。
testString: 'assert.strictEqual(euler480(), turnthestarson, "<code>euler480()</code> should return turnthestarson.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler480() {
// Good luck!
return true;
}
euler480();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>