Skip to content

Commit 095b9fc

Browse files
committed
style(flood-fill): rm redundant prints
1 parent 4dc3db2 commit 095b9fc

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

algorithms/flood_fill.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,11 @@ def flood_fill(self, x, y, steps=0):
2222
"""Basic flood fill algorithm that visits every cell in a 2D grid, where adjacent cells are defined as up to eight cells next to the current cell (can move diagonally).
2323
DFS-based implementation.
2424
"""
25-
print("Current cell: ", x, y)
26-
print("Steps taken at start", self.steps_taken)
27-
print("Visited at start: ", self.visited)
28-
print("Steps at start: ", steps)
2925
if x >= self.grid_width or y >= self.grid_height:
3026
return
3127
if x < 0 or y < 0:
3228
return
3329
if self.visited[y][x]:
34-
print("Already visited ", x, y)
3530
return
3631

3732
# Mark current cell as visited

0 commit comments

Comments
 (0)