Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/BeeBombshell/Python-DSA
/ isSafe
Function
isSafe
Backtracking/Rat_in_a_Maze.py:11–15 ·
view source on GitHub ↗
( maze, x, y )
Source
from the content-addressed store, hash-verified
9
print(
""
)
10
11
def
isSafe( maze, x, y ):
12
if
x >= 0 and x < N and y >= 0 and y < N and maze[x][y] == 1:
13
return
True
14
15
return
False
16
17
def
solveMaze( maze ):
18
# Creating a 4 * 4 2-D list
Callers
1
solveMazeUtil
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected