We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Maximizing XOR
Maximizing XOR
Sort by
recency
|
490 Discussions
|
Please Login in order to post a comment
Here is my easy and straitghforward solution, you can watch video here : https://youtu.be/pCU8W_ofvDg
Simple and Easy Solution in Python If helps you please upvote to help others
Haskell
![]( def maximizingXor(l, r): new_results = 0 for i in range(l, r + 1): for j in range(l,r + 1): old_result = i ^ j if old_result >= new_results: new_results = old_result return new_resultshttps://)