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.
For me the description is not clear: I'd search for the shortest (minimum) substring first with an appearence highest (maximum) of the matches.
Therefore in "abcabcabc" I'd find a result to be ["ab", 3], because that is the shortest substring (minimum?)
Can anyone tell me why could I interpret this in a wrong way? Does it mean that I am not too good in Math?
This comment is hidden because it contains spoiler information about the solution
As a junior Rubyist I already knew this could be done in a few keywords, but it really struck me when I saw one of the best solutions. I loved it! :)