freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-115-counting-block-...

56 lines
1.4 KiB
Markdown
Raw Normal View History

---
id: 5900f3df1000cf542c50fef1
challengeType: 5
title: 'Problem 115: Counting block combinations II'
videoUrl: ''
localeTitle: 问题115计数块组合II
---
## Description
<section id="description">注意这是问题114的更难的版本。测量n个单位长度的行具有红色块其上放置最小长度为m个单位使得任何两个红色块允许不同长度被分开至少有一个黑色方块。让fill-count函数Fmn表示可以填充行的方式的数量。例如F3,29= 673135和F3,30= 1089155.也就是说对于m = 3可以看出n = 30是填充计数函数首次超过的最小值一百万。同样对于m = 10可以验证F10,56= 880711和F10,57= 1148904因此n = 57是填充计数函数首次超过的最小值一百万。对于m = 50找到填充计数函数首先超过一百万的n的最小值。 </section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler115()</code>应返回168。
testString: 'assert.strictEqual(euler115(), 168, "<code>euler115()</code> should return 168.");'
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler115() {
// Good luck!
return true;
}
euler115();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>