Help needed with a TRIE question

Правка en1, от pulkit96, 2015-08-29 14:15:43

Hi I recently learned about tries and tried this question---- http://mirror.codeforces.com/contest/514/problem/C this is my solution to problem ---- http://mirror.codeforces.com/contest/514/submission/12742436 I would be glad if someone could take some time and explain what might be wrong with the solution , I have tried to add necessary comments to explain my approach.

PS- I was successful in solving this question using polynomial hashing but wanted to solve this using tries.

Thanks in advance.

Теги trie

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский pulkit96 2015-08-29 14:15:43 529 Initial revision (published)