AFN's blog

By AFN, history, 8 years ago, In English

Hi Codeforces community. I recently learned the trie algorithm and I'm trying to solve DICT problem form SPOJ. http://www.spoj.com/problems/DICT/ I'm getting WA for an unknown reason. Here is a link to my code. http://ideone.com/FxUaVp Any help appreciated.

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

»
8 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by AFN (previous revision, new revision, compare).

»
8 years ago, # |
  Vote: I like it 0 Vote: I do not like it

»
8 years ago, # |
  Vote: I like it 0 Vote: I do not like it

You are almost there! Your output for the sample case is wrong