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

22 lines
914 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: 5900f3df1000cf542c50fef1
title: 问题115计数块组合II
challengeType: 5
videoUrl: ''
---
# --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的最小值。
# --hints--
`euler115()`应返回168。
```js
assert.strictEqual(euler115(), 168);
```
# --solutions--