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.
The complexity of this solution is O(n²) , where n is the length of the string.
Other solutions are only O(n)
I think part of the problem with timeout is that the tester is printing out the whole array to the console when it says testing for... This slows down testing quite a bit when arrays are tens of thousands of elements long.
Same happens in crystal...