Ad
  • Custom User Avatar

    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?

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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! :)