by max xor pair for the array that we r computing it will not consider the subarrys that r starting from a[0] so we should compare them afterwards?
Subarray max prblm
hello @deepakjumani09.
we are maintaing prefix xor in a trie . and while computing max xor. we will consider those prefix whose xor with current prefix xor is maximum.
while computing this max xor, subarray starting from 0 will also be considered if it will be the best candidate to maxmize the xor.
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.