https://practice.geeksforgeeks.org/problems/find-whether-path-exist/0
plz tell why my soln is not working …i have tried the recursive approach…
https://practice.geeksforgeeks.org/problems/find-whether-path-exist/0
plz tell why my soln is not working …i have tried the recursive approach…
You forgot to mark cells as visited.
But if I mark them visited …I will not be able to use them again for a path…
It makes no point to use the cell again.
Plz make changes in my code