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.
Preach
+1 Blind4Basics
It works for that particular set of testing cases. Just think what happens if string length is increased...
Solution looks simple (it is pretty straightforward), but it ain't efficient.
It's strange that many people upvoted it.
I didn't mean it. Makes me sad.
Nope, this is an especially inefficient (and actually rather stupid) solution. The time complexity is just very wrong.
Read that again.