You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hint 1
How can game theory help us solve this problem?
Hint 2
Think about the Sprague–Grundy theorem and the Colon Principle
Hint 3
The Grundy value of a node is the nim sum of the Grundy values of its children.