We are given two coins of value x and y. We have to find the maximum of value of a XOR b where x <= a <= b <= y.
what wrong with this code?..
code Link -https://ide.codingblocks.com/s/110773
We are given two coins of value x and y. We have to find the maximum of value of a XOR b where x <= a <= b <= y.
what wrong with this code?..
code Link -https://ide.codingblocks.com/s/110773
hi manish
consider your code for the following input
1)
304
313
expected output:
15
your output:
9
2)
1
1000
expected output:
1023
your output:
1001
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.