Given an array and queries [l, r], return the XOR of all elements from index l to r for each query.
Input: arr=[1,3,4,8], queries=[[0,1],[1,2],[0,3],[3,3]] Output: [2,7,14,8]
Unlock hints progressively — start gentle, go deeper only if needed.
Level 1: Gentle Nudge
A subtle direction
Level 2: Approach
The algorithm to use
Level 3: Detailed
Step-by-step guidance
to save progress and use AI features