Re: [algogeeks] Trie Implementaion Issues

2012-12-27 Thread Aditya Raman
@Sachin :thanks man i just tried to change the code with focus on initializing NULL values to child pointers array (TrieNode->symbol in this case) and it just works fine. @Atul : thank you for trying to run the code. Actually the IDE i use preferably is DEV-c++ which had the problem i me

[algogeeks] Trie Implementaion Issues

2012-12-27 Thread Aditya Raman
Hello everyone, I was trying to implement Trie in c++ for the first time and got some issues in coding its implementation. The code has 2 commented lines namely cmnt1 and cmnt 2. I dont understand how does it make a difference if i use cmnt1 instead of cmnt2 . Both lines are intended to check if a

Re: [algogeeks] longest palindrome in a string size 2*10^4

2012-09-23 Thread Aditya Raman
@rahul: excellent answer. thanks a ton!!. @navin :i will try that too .Thanks !! -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to a

[algogeeks] longest palindrome in a string size 2*10^4

2012-09-23 Thread Aditya Raman
Hello everybody, I need to find a way of finding the longest palindrome in a very very long string (n<=2) . a linear time algo is expected. help me out -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To view this discussion on the web vi