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.
- Maximum Xor
- Discussions
Maximum Xor
Maximum Xor
Sort by
recency
|
61 Discussions
|
Please Login in order to post a comment
I thought this website was about real world problems, this is not what most people are doing in their
In swift. At first I add submit code and I failed in only test case 5 then I do nothing any change and jst again click submit code I passed in all test cases.
Python solution
O(30*n+30*m)
- time,O(30*n)
- space for the trie of bits prefixes:Java, O(n+m) - time, O(n) - space.
hint: most sig bit gives larger number