Hii everybody… m getting RTE(sigabrt) plz give me a test case 4 dis.
Question:http://www.codechef.com/problems/PETERSEN
link:http://ideone.com/fTs2JF
Hii everybody… m getting RTE(sigabrt) plz give me a test case 4 dis.
Question:http://www.codechef.com/problems/PETERSEN
link:http://ideone.com/fTs2JF
I think your recursive logic is creating problem here. I have also experienced runtime errors a few times when using recursion. Check if your code works on huge test case. (String length=100000).