Help me identify the error in my code/logic
Now the above code works. However, I am still trying to wrap my head around one thing - 1 <= a <= b <= c <= d <= N. So a case arises when b=c, so in that case the value- maxXORLeft[i]+maxXORRight[i] should also be considered right ?
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.