logic seems right yet cases fail.
XOR PROFIT PROBLEM case failed
@S19LPPP0159 hey gautam try to handle these values
1
1000
your output is 1001
but expected output is 1023.
Could you correct the code ?
@S19LPPP0159 hey gautam in your code inside the loop you are taking xor of a,b but you should take i^j
thanks i made the correction.