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

847 B
Raw Blame History

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

Description

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

Instructions

Tests

tests:
  - text: <code>permutedMultiples()</code>应该返回142857。
    testString: assert.strictEqual(permutedMultiples(), 142857);

Challenge Seed

function permutedMultiples() {
  // Good luck!
  return true;
}

permutedMultiples();

Solution

// solution required

/section>