freeCodeCamp/curriculum/challenges/chinese/08-coding-interview-prep/project-euler/problem-62-cubic-permutatio...

1.0 KiB
Raw Blame History

id challengeType title videoUrl localeTitle
5900f3aa1000cf542c50febd 5 Problem 62: Cubic permutations 问题62立方排列

Description

可以置换立方体410636253453以产生另外两个立方体566231043843和664301254053。实际上41063625是最小的立方体其正好具有三个排列的数字也是立方体。找到最小的立方体其数字的五个排列正好是立方体。

Instructions

Tests

tests:
  - text: <code>euler62()</code>应该返回127035954683。
    testString: 'assert.strictEqual(euler62(), 127035954683, "<code>euler62()</code> should return 127035954683.");'

Challenge Seed

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

euler62();

Solution

// solution required