Hii everybody… m getting RTE(sigabrt) plz give me a test case 4 dis.
Question:PETERSEN Problem - CodeChef
link:fTs2JF - Online C++ Compiler & Debugging Tool - Ideone.com
Hii everybody… m getting RTE(sigabrt) plz give me a test case 4 dis.
Question:PETERSEN Problem - CodeChef
link:fTs2JF - Online C++ Compiler & Debugging Tool - Ideone.com
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).