freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-258-a-lagged-fibona...

56 lines
789 B
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: 5900f46e1000cf542c50ff81
challengeType: 5
videoUrl: ''
title: 问题258滞后的斐波那契序列
---
## Description
<section id="description">序列定义为: <p> gk = 1对于0≤k≤1999gk = gk-2000 + gk-1999对于k≥2000。对于k = 1018找到gk mod 20092010。 </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler258()</code>应该返回12747994。
testString: assert.strictEqual(euler258(), 12747994);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler258() {
// Good luck!
return true;
}
euler258();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
/section>