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.
For some reason this didn't pass the tests for me!
nicely done truly^^
Nice one! Got it once I realized I needed to copy the array to keep from modifying it.
Heh, failed one... I'll work on it
I wasn't trying to say my solution was better. I will check your kata out though!
Try your solution with my related kata, I think you'll learn a couple of things.
Best solution I've seen yet!
LOL... this feels like cheating to me.
Thank you and you were correct - copying the array first was the ticket. Rookie...
If so it probably means that your solution modifies input data which it shouldn't do.
( Description said :
Hope it helps!
; ) )
In Python, I couldn't get it to pass on the second test... print testing revealed "data" was not [1, 2, 3, 4, 5], but [5, 1, 2, 3, 4] - the correct result of the first test. My return had the characters shifted over 2 spaces correctly based on this, but the assert test was looking for a shift based on the original data order.