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

1.0 KiB
Raw Blame History

id, title, challengeType, videoUrl, dashedName
id title challengeType videoUrl dashedName
5900f3dd1000cf542c50feef 问题112有弹性的数字 5 problem-112-bouncy-numbers

--description--

如果左边的数字没有超过数字,则从左到右工作,称为递增数字;例如134468。同样如果右边的数字没有超过数字则称为递减数字;例如66420。我们将调用一个既不增加也不减少“有弹性”数的正整数;例如155349。显然不会有任何低于一百的弹性数字但只有超过一千525的数字超过一半是有弹性的。事实上有弹性数字首次达到50的最小数量是538.令人惊讶的是有弹性的数字变得越来越普遍当我们达到21780时有弹性数字的比例等于90。找出有弹性数字的比例正好为99的最小数字。

--hints--

euler112()应返回1587000。

assert.strictEqual(euler112(), 1587000);

--seed--

--seed-contents--

function euler112() {

  return true;
}

euler112();

--solutions--

// solution required