Doubt on Trie

Revision en1, by Codercell, 2017-02-11 17:21:58

Guys , in the below TRIE tutorial in problem 2 , he explains a way to find maximum XOR subarray in a given array.But i find that the method illustrated requires O(n^2) operations as N times he queries the Trie each of which takes linear time.How does the solution pass the time limit. Trie Tutorial

Trie Question

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Codercell 2017-02-11 17:21:58 526 Initial revision (published)