in the code we took this matrix,
“0000”,
“00x0”,
“000x”,
“0x00”
First we go right , we reach end of the row ,
rightSuccess=false ans we assign 1 in those positions,
now we check down side
now we are checking maze[1][3], returns true,
we go one more step down maze[2][3], there is a blockage
downSuccess=false,
1st question : am i right till now ?
2nd question : when we are getting false from both the sides, where our cursor will go, will it go back to (0,0) ?
3rd question: if it goes just one step back and check again, then which line in the code insures that ?