Search
⌘K

Leetcode 810. Chalkboard XOR Game

Determine whether Alice has a winning strategy in a two-player game where players alternately erase one number and the player who makes the XOR of the remaining numbers equal to zero loses; the solution hinges on the initial XOR value and the parity of the array length.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.