My recursive soluton for this problem gives SIGSEGV, although its working for all testcases. Please help me find the problem?
Link to the solution: CodeChef: Practical coding for everyone
My recursive soluton for this problem gives SIGSEGV, although its working for all testcases. Please help me find the problem?
Link to the solution: CodeChef: Practical coding for everyone
My code is working for the test case you mentioned. You can check 9WslYI - Online C++ Compiler & Debugging Tool - Ideone.com
Can you point out the exact mistake in my recursive code as other codes with the same logic were accepted.
In this add one more case of same length
I add two more case and it shows RTE here
but it is NOT showing. U check it by yourself