The TransCompilator

Solved LeetCode program · 583 of 1,000

#0810 · Chalkboard XOR Game

Hard Array chunk-12.md

Original English source

The numbers is a list of 1, 1, and 2. The last is the last position of numbers. The count is the number of items in numbers. The mixed is 0.
For every spot from 0 to last.
The mixed is exclusive or of mixed and item spot of numbers.

If mixed is 0, show true. If mixed is not 0 and count modulo 2 is 0, show true. If mixed is not 0 and count modulo 2 is 1, show false.

Open in Playground Browse all 1,000 problems

Expected stdout

false