MAXIMUM XOR SUBARRAY CPP


why is my testcase 3 failing

hey, @Kush_1312 your code is giving wrong answer for testcases like this
4
1 2 8 12
Correct output
12
Your Output
14

Dry run code for this testcase once

I tried but i am not able to get where am i going wrong. could you plz correct and markout the mistake

@Kush_1312
In this problem we need to maintain trie for prefix xor.
u are making tries for elements and not for their prefix xor.

refer to this updated code