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.
Only reverse one time, otherwise you will time out on large strings.
Timing out problem may be due to calling reverse multiple times, do that only once.
Ah yes, of course, it's right in front of me!
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I had solved the test with loops but timed out. Saw your tip and A HA! I solved the tests with a totally new approach (no loops) but it still times out. Grrr EDIT: Another commenter here mentioned sorting the arrays itself will cause a timeout. Although I did remove the for loops I had left the code to sort the array even though it wasn't necessary anymore. Problem solved.