Array Xor
CodeChefOpen on judge ↗
Description Mala is interested in playing games with arrays. She had an array a of size n. She needs to process k queries. She uses a pair of query formats to manipulate the array. The formats are: 1 x y ,where x is the index of the array a. y is a positive integer value. $$a[x]=a[x]⊕y$$ 2 m q, where m and q are the starting and ending indices respectively. It can be represented as below. $$\su
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start