19. Backtracking/rat_in_a_maze.cpp
bool isSafe(int maze[N][N], int x, int y)
{
	// if (x, y outside maze) return false
	if (
		x >= 0 && x < N && y >= 0
		&& y < N && maze[x][y] == 1)
		return true;

	return false;
}
/* A utility function to check if x, y is valid index for N*N maze */
A utility function to check if x, y is valid index for N*N maze
A utility function to check if x y is valid index for N * N maze
bool isSafe(int maze[N][N], int x, int y)
{
	if (
		x >= 0 && x < N && y >= 0
		&& y < N && maze[x][y] == 1)
		return true;
	return false;
}
bool isSafe ( int maze [ N ] [ N ] , int x , int y ) { if ( x >= 0 && x < N && y >= 0 && y < N && maze [ x ] [ y ] == 1 ) return true ; return false ; }
A utility function to check if x, y is valid index for N*N maze
A utility function to check if x y is valid index for N * N maze
// if (x, y outside maze) return false