Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
Note that flipping a bit twice does nothing.
In order to determine the value of a bit, consider how you can efficiently count the number of flips made on the bit since its latest update.