Max xor subarray

my code is showing -1 as the output

Hello @ankit152

Here is the modified code


You need to push the xor’s of the prefix elements in the trie and NOT the elements themselves.

Let me know if you need any help.

thank you for the help. i understood where i was doing the mistake.