CODE: https://ide.codingblocks.com/s/167821
what is wrong in my code ? not getting the correct output please help !!
Range Xor tries
Hello @shashakchandel
change line 116 from “cin>>x>>l>>r” to “cin>>l>>r>>x”
shift “curr_xor += (int)pow(2, j)” from if(curr->left != NULL) statement to else statement
Here is the modified code
I have marked the changes done.
Let me know if you still need any help.