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.
Smart but won`t be an ideal solution in interview i guess.
That's really smart!
I doubt this works for n>=4000 (which isn't exkluded in the task description). Of course, there is the rescue in the example stating that "Remember that there can't be more than 3 identical symbols in a row." :o)