We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Once you recognize the most important invariant, you can see that there's actually only a few truly distinct possible games, and then it's simple to just go through them manually and check who wins each one.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
New Year Game
You are viewing a single comment's thread. Return to all comments →
Once you recognize the most important invariant, you can see that there's actually only a few truly distinct possible games, and then it's simple to just go through them manually and check who wins each one.