Please Explain the problem with a better testcase
XOR PROFIT PROBLEM, Unable to Understand Problem
Hey Lakshay , kindly mention the problem you are asking for to explain .
I have Updated the question. I thought it would automatically track the exercise.
The problem says you have to pick a and b between x and y such that the XOR of those numbers is maximum.
Let say if x = 2 and y =4 .
The possible values ’ a ’ can have is - 2 and 3
Similarly ’ b ’ can have values 3 and 4
2 XOR 3 = 1
2 XOR 4 = 6
3 XOR 3 = 0
3 XOR 4 = 7
The output should be 7.
Hi Lakshay, as you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.
Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.