• + 1 comment

    This problem is similar and can be understood as a Nim sum problem if the XOR of all the indices is taken instead of values.