Problem 1510 · Hard

Stone Game IV

Decide whether the first player can win a stone game by tracking which stone counts are winning positions. The visual fills a row of counts with win or lose labels.

Open the interactive visualisation