https://ide.codingblocks.com/s/54730 my code is passing only two test case what’s wrong in my code. i think i declaring wrong constraint sizes .kindly debug the code and suggest me a better approach
Ratinmaze problem
Hey Neeraj, you have made two mistakes in your code
- your output should exactly match with the given output format so print a space after every number.
- before making a recursive call first you have to check if you can make that particular cell of the matrix or not.
Here, I have updated your code, you can refer this.