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.
Yep.
But this solution solution was written in Python2 where using
/
between two integers meant integer division.It's not a very good solution frankly speaking. It has complicated logic for dealing with substrings that start with the same letter (yet it's pretty easy to follow (for me) somehow, maybe the fact that I still remember why I coded it like this, helps me decipher the algorithm faster), and not efficient (it's
O(n^2)
due to nested loops andpop(0)
- the hit on performance with the current tests is small, but it is indeed present).Though, if you still liked it, then thanks O_o