HELP trie policy based data structure

Revision en1, by purple_dreams, 2017-06-30 00:46:00

My solution click to this hackerrank problem click

I use trie policy data structure but it is tle since distance operator is O(n) ... any help how to implement using it or it is not possible?

Tags trie

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English purple_dreams 2017-06-30 00:46:00 315 Initial revision (published)