The Minion Game

  • + 0 comments

    We can apply one final small optimisation in this problem, as we know that the sum of Stuart and Kevin's points for a given string is constant (equal to ((n + 1)n/2), where (n) is the length of the string). Therefore, we can skip keeping track of, for example, Stuart's points and, at the end, subtract Kevin's points from the known total.