gol_alu's blog

By gol_alu, history, 9 years ago, In English

Given an array of integers and a value, how do I efficiently ( better than O(n) ) find the element of the array that gives the maximum result after XORing with the given value?

  • Vote: I like it
  • -8
  • Vote: I do not like it

»
9 years ago, hide # |
 
Vote: I like it +3 Vote: I do not like it

Best way I know is you can use a trie to find the answer .You can read this for more such question :)