Hi,
In the problem "chef and easy xor queries" of the current december challenge , we need to output the 'number of magical subarrays whose xor of all elements is equal to a certain number'.Can someone explain what 'xor of all elements means'?I had presumed it was the xor was commutative ie (a^b^c) was the same as (a^b)^c,but in the given example , ie the array Is there something I am not getting?(Not about the problem,but about the concept of xor queries..) asked 03 Dec '17, 19:45

It will be better if you ask your problem in comment section of that question. answered 03 Dec '17, 19:58

The length of a subarray can be 1. So, [A[0],] is also a subarray with xor 1. :)
@devildudeja u might post the above question as comment below the pblm so that it might be useful for them.
Please dont ask or answer queries related to on going contest, no matter how small or trivial.