freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-408-admissible-paths-through-a-grid.md
Oliver Eyton-Williams ee1e8abd87
feat(curriculum): restore seed + solution to Chinese (#40683)
* feat(tools): add seed/solution restore script

* chore(curriculum): remove empty sections' markers

* chore(curriculum): add seed + solution to Chinese

* chore: remove old formatter

* fix: update getChallenges

parse translated challenges separately, without reference to the source

* chore(curriculum): add dashedName to English

* chore(curriculum): add dashedName to Chinese

* refactor: remove unused challenge property 'name'

* fix: relax dashedName requirement

* fix: stray tag

Remove stray `pre` tag from challenge file.

Signed-off-by: nhcarrigan <nhcarrigan@gmail.com>

Co-authored-by: nhcarrigan <nhcarrigan@gmail.com>
2021-01-12 19:31:00 -07:00

45 lines
1016 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
id: 5900f5091000cf542c51001b
title: 问题408通过网格的可允许路径
challengeType: 5
videoUrl: ''
dashedName: problem-408-admissible-paths-through-a-grid
---
# --description--
如果xy和x + y都是正的正方形那么我们称格子点xy是不允许的。例如9,16是不允许的0,43,19,4则不允许。
考虑从点x1y1到点x2y2的路径仅使用北或东的单位步长。如果其中间点都不允许我们可以称这样的路径是可以接受的。
令Pn是从0,0nn的可允许路径的数量。可以证实P5= 252P16= 596994440和P1000mod 1 000 000 007 = 341920854。
求P10 000 000mod 1 000 000 007。
# --hints--
`euler408()`应该返回299742733。
```js
assert.strictEqual(euler408(), 299742733);
```
# --seed--
## --seed-contents--
```js
function euler408() {
return true;
}
euler408();
```
# --solutions--
```js
// solution required
```