Range XOR Question

I didn’t really understand the question.
In Query of Type 1, we have to find a number such that X^Y is maximum, and that number should be in the range L,R. This range means that the number that we have to find should lie between 1 and 4 or what does it exactly mean?

hi @gptradhika1208
L and R are the range of the the array indices
So in the example, you have to find a number from the array within the range 1-4 to maximize itsXOR value with 6.
Please note that the indices given here are 1 based, not 0 based

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.