My program is giving runtime error.Please Check!!
Rat in a maze Challenge
hey @prashantverma.vn, similar query is being already answered. please refer to it Rat in a maze Backtrack
From the reference I’ve increased the size of arrays from 1001, but still getting runtime error.
Please check my code…
hey @prashantverma.vn, we need to print one solution only, hence we need to maintain an visited array. We also don’t want to cross the maze so we need to check that too.
Consider this code for reference