Ezvor
Interview prep & careers
Practice
Home
Problems
Study Lists
Progress
Leaderboard
Compiler
Career
Readiness
Roadmaps
Opportunities
Resources
AI Advisor
0
day streak
0
solved
Settings
Sign in
Toggle Sidebar
Ezvor
Interview prep & careers
Problem List
Run
Submit
Interview
Interview mode
0
00:00
Description
Editorial
Solutions
AI Coach
Submissions
Notes
1908. Game of Nim
Medium
Array
Preparing judge…
LeetCode
Array
Math
Dynamic Programming
Bit Manipulation
Brainteaser
Game Theory
Nim Game
Sprague–Grundy Theorem
Impartial Game
Hints
Hint 1
Simulate the game and try all possible moves for each player.
Preparing judge…
Testcase
Test Result
Case 1
Input