Блог пользователя gol_alu

Автор gol_alu, история, 9 лет назад, По-английски

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?

  • Проголосовать: нравится
  • -8
  • Проголосовать: не нравится

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +3 Проголосовать: не нравится

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