MCPcopy Create free account
hub / github.com/BeeBombshell/Python-DSA / printSolution

Function printSolution

Backtracking/Rat_in_a_Maze.py:4–9  ·  view source on GitHub ↗
( sol )

Source from the content-addressed store, hash-verified

2N = 4
3
4def printSolution( sol ):
5
6 for i in sol:
7 for j in i:
8 print(str(j) + " ", end ="")
9 print("")
10
11def isSafe( maze, x, y ):
12 if x >= 0 and x < N and y >= 0 and y < N and maze[x][y] == 1:

Callers 1

solveMazeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected