Rhonda and Rotations
CodeChefOpen on judge ↗
Rhonda the Rash, friend of Mike is a fantastic racer, but sucks at coding. Mike asks him a tricky query problem. So, he needs your help. You are given an array of $N$ Integers $A_1, A_2, A_3, ... A_n$ and $Q$ queries. Each query is one of three types : - $X$ $l$ $r$ : Print XOR of elements in range $l$ to $r$ (inclusive $l$ and $r$). - $L$ $k$ : Left shift array by $k$. - $R$ $k$ : Right shift ar
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