--- id: 5900f3841000cf542c50fe97 challengeType: 5 title: 'Problem 24: Lexicographic permutations' videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions undefined ## Tests
```yml tests: - text: '' testString: 'assert(lexicographicPermutations(699999) == 1938246570, "lexicographicPermutations(699999) should return 1938246570.");' - text: '' testString: 'assert(lexicographicPermutations(899999) == 2536987410, "lexicographicPermutations(899999) should return 2536987410.");' - text: '' testString: 'assert(lexicographicPermutations(900000) == 2537014689, "lexicographicPermutations(900000) should return 2537014689.");' - text: '' testString: 'assert(lexicographicPermutations(999999) == 2783915460, "lexicographicPermutations(999999) should return 2783915460.");' ```
## Challenge Seed
```js function lexicographicPermutations(n) { // Good luck! return n; } lexicographicPermutations(999999); ```
## Solution
```js // solution required ```