Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Can you help. My solution passed the tests, written similar to yours, but fails when I'm trying to pass the real tests.
http://www.codewars.com/kata/51eead3461ccf7db04000017/train/javascript
Cool task, man!
At first I figured it out with extremely slow decision with sorting after each item generation,
but my more expirienced colleague helps me to understand some useful alhoritm, thats why I can solve this kata in elegant way and pass the time tests.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution