Sukarna_Paul's blog

By Sukarna_Paul, history, 3 months ago, In English,

How can I solve this problem ? Link

 
 
 
 
  • Vote: I like it
  • 0
  • Vote: I do not like it

»
3 months ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

It is a classical trie data structure problem.

You can learn it from here.

  • »
    »
    3 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Actually here I need check whether any substring (not only the whole string) is there which is mentioned before as a string, How to reduce the complexity while checking for every substring?