PHONELST SPOJ

Revision en2, by rahulpadhy, 2017-02-08 06:42:10

Hey, can anyone please tell as to where I am going wrong ? Here's the problem link : http://www.spoj.com/problems/PHONELST/

I am getting Runtime Error.. Am I doing anything wrong in the deletion part, wherein I am trying to delete the entire trie ? I am even getting Runtime Error for the 2nd sample input..

My solution link : http://ideone.com/4hSjtb

EDIT : My code seems to work for only a single test case, not for multiple test cases..

Tags spoj, trie

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English rahulpadhy 2017-02-08 06:42:10 138
en1 English rahulpadhy 2017-02-08 06:40:08 324 Initial revision (published)