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.
This is basically what "rearrange" means. If tests are failing for you, then most probably you do not check for rearrangements correctly. One potentially tricky case:
scramble('a', 'aa')
should returnFalse
.The key is in this part:
That method returns how many items per page are in a certain page.
Using list [1, 2, 3, 4] and page length 1:
This comment is hidden because it contains spoiler information about the solution
not an issue. Read the description with more attention, please. The discourse is not here for you steaming out some frustration.
4, it is explained in the kata description.