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.
Hello! I've left my Java 8 solution here in case anyone has trouble.
Just keep in mind:
- GrundyNumbers.
- Minimum Excludant.
- GrundyNumber of multiple games is the XOR of the grundy numbers of the games.
- You only have to evaluate a state once.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Bowling Pins
You are viewing a single comment's thread. Return to all comments →
Hello! I've left my Java 8 solution here in case anyone has trouble.
Just keep in mind: - GrundyNumbers. - Minimum Excludant. - GrundyNumber of multiple games is the XOR of the grundy numbers of the games. - You only have to evaluate a state once.