Skip to content

Commit c3a287d

Browse files
authored
contents(algo): fix typo in algorithm/graph content (#594)
1 parent e3a414e commit c3a287d

File tree

1 file changed

+1
-1
lines changed
  • apps/website/contents/algorithms

1 file changed

+1
-1
lines changed

apps/website/contents/algorithms/graph.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ def dfs(matrix):
117117

118118
Breadth-first search is a graph traversal algorithm which starts at a node and explores all nodes at the present depth, before moving on to the nodes at the next depth level. A [queue](./queue.md) is usually used to keep track of the nodes that were encountered but not yet explored.
119119

120-
A similar template for doing breadth-first searches on the matrix goes like this. It is important to use double-ended queues and not arrays/Python lists as enqueuing for double-ended queues is O(1) but it's O(n) for arrays.
120+
A similar template for doing breadth-first searches on the matrix goes like this. It is important to use double-ended queues and not arrays/Python lists as dequeuing for double-ended queues is O(1) but it's O(n) for arrays.
121121

122122
```py
123123
from collections import deque

0 commit comments

Comments
 (0)