Files
freeCodeCamp/curriculum/challenges/english/10-coding-interview-prep/project-euler/problem-62-cubic-permutations.english.md
Oliver Eyton-Williams bd68b70f3d Feat: hide blocks not challenges (#39504)
* fix: remove isHidden flag from frontmatter

* fix: add isUpcomingChange

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

* feat: hide blocks not challenges

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>

Co-authored-by: Ahmad Abdolsaheb <ahmad.abdolsaheb@gmail.com>
2020-09-03 15:07:40 -07:00

64 lines
1.1 KiB
Markdown

---
id: 5900f3aa1000cf542c50febd
challengeType: 5
title: 'Problem 62: Cubic permutations'
forumTopicId: 302174
---
## Description
<section id='description'>
The cube, 41063625 (345<sup>3</sup>), can be permuted to produce two other cubes: 56623104 (384<sup>3</sup>) and 66430125 (405<sup>3</sup>). In fact, 41063625 is the smallest cube which has exactly three permutations of its digits which are also cube.
Find the smallest cube for which exactly five permutations of its digits are cube.
</section>
## Instructions
<section id='instructions'>
</section>
## Tests
<section id='tests'>
```yml
tests:
- text: <code>cubicPermutations()</code> should return a number.
testString: assert(typeof cubicPermutations() === 'number');
- text: <code>cubicPermutations()</code> should return 127035954683.
testString: assert.strictEqual(cubicPermutations(), 127035954683);
```
</section>
## Challenge Seed
<section id='challengeSeed'>
<div id='js-seed'>
```js
function cubicPermutations() {
// Good luck!
return true;
}
cubicPermutations();
```
</div>
</section>
## Solution
<section id='solution'>
```js
// solution required
```
</section>