Maze matrix
int [ , ] maze = { { 1 , 0 , 1 , 1 , 0 } , { 1 , 1 , 1 , 0 , 1 } , { 0 , 1 , 0 , 1 , 1 } , { 1 , 1 , 1 , 1 , 1 } } ; if ( isReachable ( maze ) ) { Console . WriteLine ( " Path ▁ Found ! STRNEWLINE " ) ; } else Console . WriteLine ( " No ▁ Path ▁ Found ! STRNEWLINE " ) ; } private static void setVisited ( bool b ) { for ( int i = 0 ; i < visited . GetLength ( 0 ) ; i ++ ) { for ( int j = 0 ; j < visited . GetLength ( 0 ) ; j ++ ) { visited [ i , j ] = b ; } } } private static bool isReachable ( int [ , ] maze ) {