Range XOR Problem

I have written the Brute force Code here https://ide.codingblocks.com/s/76716 which is passing only one test case. I cannot think of how to use Trie in this question, nor can I find any help video for this question in the online course. Can someone please elpain the Trie approach ?

Also another small clarification, The Range L, R means both inclusive or not ? The question didn’t make it clear.

inclusive of L and R.

You didn’t ans the original doubt, only the small clarification ??

please accept the request chat option

How do I accept the request?

I too facing problem sovling this. Please reply ASAP how to optimise this using tries.

you can refer the editorial also for this question

please share me the link for editorial.

https://hack.codingblocks.com/contests/c/471/1562/editorial

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.