Skip to content

Commit

Permalink
Done - prepare-the-bunnies
Browse files Browse the repository at this point in the history
  • Loading branch information
SyedAsadAbrar committed Oct 25, 2022
1 parent 2439c71 commit a08ea57
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions 3-2-prepare-the-bunnies-escape.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
infinity = float('inf')


# def printMatrix(arr):
# for i in arr:
# print(i)
# print("")


def findNavigableNeighbours(position, matrix):
cols = len(matrix)
rows = len(matrix[0])
Expand Down Expand Up @@ -89,8 +83,6 @@ def solution(matrix):

newMatrices = []

# printMatrix(matrix)

result.append(findLeastNumberOfMoves(matrix))

for col in range(cols):
Expand All @@ -100,8 +92,6 @@ def solution(matrix):
if value == 1:
possibleWallRemovingPositions.append((col, row))

# printMatrix(possibleWallRemovingPositions)

for position in possibleWallRemovingPositions:
col, row = position
newMatrix = [[num for num in arr] for arr in matrix]
Expand Down

0 comments on commit a08ea57

Please sign in to comment.