This code is iterative in nature. Please make it recursive innature.
public class Maze
{
final int N = 4;
/* For printing the solution matrix
sol[N][N] */
void printSolution(int sol[][])
{
for (int i = 0; i <N; i++)
{
for (int j = 0; j < N; j++)
System.out.print(” ” + sol[i][j] +
” “);
System.out.println();
}
}
/* to check if whether direction x,y arevalid*/
boolean isSafe(int maze[][], int x, int y)
{
// if (x,y outside )return false
return (x >= 0&& x < N && y >= 0 &&
y < N && maze[x][y] == 1);
}
boolean solveMaze(int maze[][])
{ int sol[][] =
PayPal Gateway not configured
PayPal Gateway not configured