← All problemsSign in

Xor queries

Given a two dimensional matrix A of dimensions N*M, (N rows and M columns). You have to answer Q queries. In each query, you have to find the bitwise xor of rectangle having top left corner as (x1,y1) and bottom right corner as (x2,y2). Note: You can read more about the bitwise-xor operation here: Bitwise operation Input - The first line contains two space-separated integers N, M denoting the

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start