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.
Well, this solution times out too occasionally... I believe it depends on the input received -- if you're lucky, it fits within the time-limit :-)
I had the exact solution as this, but mine timed out. Do you have any idea as to why this could happen? Is it my CPU?
Thank you for the response!
on very long strings (composed of many words), this is especially inefficent! :/
I am confused when the 'while s:' statement has to break. I would assume it has to break after len(result) == len(s), but I am confused why 'while s:' allows this to happen.
Love the logic here, can't wait to get to this point!