I have one question: if there is given an array a with n natural numbers and natural x, will this word be true: x xor a[0] xor a[1] … xor a[n-2] xor a[n-1]=x xor (a[0] xor a[1]… xor a[n-2] xor a[n-1])? update: will this be true on and? or?
Yes. XOR is associative.
thanks you very much