Skip to content

Commit f829dc3

Browse files
committed
chore(bfs): rm grid-dependent description in bfs method doc
1 parent 01ae6e0 commit f829dc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

algorithms/bfs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def __init__(self, grid_width, grid_height, visited=None):
1717
self.queue = Queue()
1818

1919
def bfs(self, x, y, steps=0):
20-
"""Breadth-First Search 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).
20+
"""Breadth-First Search algorithm that visits every cell in a 2D grid.
2121
"""
2222
if x >= self.grid_width or y >= self.grid_height:
2323
return

0 commit comments

Comments
 (0)