Testcase 15 - perf-test-4 failing again and again!

I have downloaded the TC from the hint and tried to debug my code.
After trying hard, I am not able to understand what is causing this issue.
Unable to find any logical error.
Kindly help me soon.
@raghuveer, @aritra-crio-ta, @krishnadey-crio-ta

Hey @imbipulkumar Can you please let me know if it’s wrong answer or TLE?

@imbipulkumar

Kindly go through your code again. I noticed you dont stop your recursion once you find your path. This leads to all the path being formed getting appended to the the path vector. In perf-case-4 your vector overflows due to multiple paths being stored in it. Resolve this to pass all cases.

2 Likes

Closing this topic as your issue is resolved by the mentor. If it is still not resolved, Kindly un-mark the accepted solution or create a new topic and post this question as a reference link in the description of the new topic.