< Previous Next > 1908. Game of Nim (Medium) Related Topics [Bit Manipulation] [Brainteaser] [Array] [Math] [Dynamic Programming] [Game Theory] Hints Hint 1 Simulate the game and try all possible moves for each player.