freeCodeCamp/curriculum/challenges/chinese/10-coding-interview-prep/project-euler/problem-52-permuted-multipl...

433 B
Raw Blame History

id title challengeType videoUrl
5900f3a01000cf542c50feb3 问题52置换倍数 5

--description--

可以看出数字125874及其双精度数251748包含完全相同的数字但顺序不同。找到最小的正整数x使得2x3x4x5x和6x包含相同的数字。

--hints--

permutedMultiples()应该返回142857。

assert.strictEqual(permutedMultiples(), 142857);

--solutions--