24 lines
489 B
Markdown
24 lines
489 B
Markdown
---
|
||
id: 5900f41e1000cf542c50ff31
|
||
title: 问题178:步骤编号
|
||
challengeType: 5
|
||
videoUrl: ''
|
||
---
|
||
|
||
# --description--
|
||
|
||
考虑数字45656.可以看出,45656的每对连续数字的差值为1。每对连续数字的差值为1的数字称为步数。 pandigital数字包含从0到9的每个十进制数字至少一次。
|
||
|
||
有多少pandigital步数小于1040?
|
||
|
||
# --hints--
|
||
|
||
`euler178()`应该返回126461847755。
|
||
|
||
```js
|
||
assert.strictEqual(euler178(), 126461847755);
|
||
```
|
||
|
||
# --solutions--
|
||
|