Maze path @wrong ans

https://ide.codingblocks.com/s/51621
https://hack.codingblocks.com/contests/c/512/379

my output is coming correct but still sit is showing wrong ans on submitting .plz tell me whats wrong.

Hi Ayush,
Just a minor change in the recursive calls needs to be made.
When we move horizontally, the column increases and when we move vertically, the row increases.
I’ve made these changes in your code, you can refer it here https://ide.codingblocks.com/s/51631

1 Like