I'm new in trie. I have solved uvaoj problem no 11362 (phonebook) but it does not work properly. For the first test case it shows correct ans but for next 2nd test case compiler says "Has stopped working" problem link : https://uva.onlinejudge.org/external/113/p11362.pdf my code : http://pastebin.com/VMdzx7CB
Hmm, strange..
I got AC with the same idea, check this out
AC Code
Atleast you Tried
On my machine it worked for both cases. Look this case, your code doesn't work: 1 2 91125426 911