Only perf-test-case-4 is failing
Try unlocking the hints and use it to debug your solution. Your dfs implementation has a silly mistake (Hint : think about when you should return and when you shouldn’t during dfs)…
@rohit Were you able to spot the dfs mistake and pass the perf test?
I have tried but i am not able to spot the mistake.
Think of if you get null on a path … do you not check for other paths? Are you checking for other paths.
Closing this topic as there is no response since last 12 hours. Please feel free to create a new topic and post this question as a reference link in the description of the new topic.