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.
Actually there shouldn't be a test on
[5,1,2,3,4]
.Your log indicates that you've probably modified the array passed as argument.
The true argument is
[1,2,3,4,5]
then rotate it by-1
should result in[2,3,4,5,1]
.So i've modified the tests to (try to) avoid this kind of "issue".
Can you try it again and tell me if it works ?
Suggestion approved, test added.
Thx for your contribution.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution