Rat in a maze Recursion

Please correct the code as memory constraints are large and I m getting run time error

hi @avinashmallik2017 make the maze and soln arrays global variables, that way you wont get error due to limited stack memory.

https://ide.codingblocks.com/s/249037 Please check

hi @avinashmallik2017 your code is printing all the possible paths but in the question you have to print the right most path only. see line 27 of this code https://ide.codingblocks.com/s/249081 i modified the code a bit so that only right most path would be printed

Mam still some test cases are not getting accepted

@avinashmallik2017 please see the following code for reference https://ide.codingblocks.com/s/247347