My doubt is that my code is okay or need to change a bit from time complexity perspective…
Subarray With Max XOR Doubt
hello @Kinjal keeping in mind about the time complexity this question is solved by trie in best time complexity and you have used the same data strucutur then yes your is completely fine .
Happy Learning !!
My doubt arises because what I did in this problem is,
I just overwrite the same input array for taking input and replace all of its elements with cumulative XOR of their respective index in the same input array so I asked…
hello @Kinjal but your logic and iplementation is correct .
so yes it is fine .
Don’t worry .
Happy Learning !!
Okay. Can you show your code…