Files
freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-154-exploring-pascals-pyramid.md
Oliver Eyton-Williams dec409a4bd fix: s/localeTitle/title/g
2020-10-06 23:10:08 +05:30

56 lines
1.2 KiB
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: 5900f4071000cf542c50ff19
challengeType: 5
videoUrl: ''
title: 问题154探索帕斯卡的金字塔
---
## Description
<section id="description">使用球形球构造三角形金字塔,使得每个球恰好位于下一个较低水平的三个球上。 <p>然后我们计算从顶点到每个位置的路径数量路径从顶点开始并向下前进到当前位置正下方的三个球体中的任何一个。因此到达某个位置的路径数是紧接在其上方的数字的总和取决于位置在其上方最多有三个数字。结果是Pascal的金字塔每个级别n的数字是三项式展开x + y + zn的系数。 x + y + z200000的扩展中有多少个系数是1012的倍数 </p></section>
## Instructions
<section id="instructions">
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>euler154()</code>应该返回479742450。
testString: assert.strictEqual(euler154(), 479742450);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function euler154() {
// Good luck!
return true;
}
euler154();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
/section>