The Minion Game

  • + 1 comment

    I asked that myself. I wrote code which count all the substrings but you dont need to do that cause every substring just scores as 1. len(string) = number of substrings for one loop. BANANA for example you can just say len(string) = 6 or B, BA, BAN, BANA, BANAN, BANANA = 6