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 comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Thank you,
Great kata!
In the example where it looped right I thought the end values would end up in reverse order at the beginning of the array e.g. loopArr([1, 5, 87, 45, 8, 9], 'right', 2) => [9, 8, 1, 5, 87, 45]. You should change the examples so there are not two of the same values for clarification, but other than that good problem!
I second this. It's a fair kata for the level - but the examples do a better job at explanation than the problem statement itself.
I think "revolve" should make it clearer. But yeah examples help make sense of it.
changed it
Fine kata for the level
Minor: description has 'reult' where result is ment
Maybe it's just me that thinks the description isn't clear enough.
..had to use common sense by looking at the examples
Great kata!
Should test for not modifying inputs.
Don't allow bad habits!
Thank you! May the Force be with you! :)
Missing tests with
steps > arr.length
. This is perfectly valid within the description.I've updated description to make it more clear.
There are a lot of solutions right now, believe it is clear enough to understand what to do and how to do it :)
Description is not clear:
steps
specifies where to start, not a number of steps;direction
doesn't tell how to loop; real direction is always forward (left to right);