IN the max Xor pair function we have done
last bit=(n>>i) & 1
why are we right shifting n it should be the value of the current array element which is stored in variable val which should be right shifted right?
ONly then we will be able to find max xor with some other array element?So why are we right shifting the value of n and not value?