OSDN Git Service

fix: remove an excess right parenthesis
authorJoshua Astray <JoshuaSRKF@gmail.com>
Tue, 27 Aug 2019 10:26:50 +0000 (18:26 +0800)
committerGitHub <noreply@github.com>
Tue, 27 Aug 2019 10:26:50 +0000 (18:26 +0800)
docs/graph/bfs.md

index b36906c..f49b7fb 100644 (file)
@@ -20,7 +20,7 @@ BFS 全称是 [Breadth First Search](https://en.wikipedia.org/wiki/Breadth-first
 ```text
 bfs(s) {
   q = new queue()
-  q.push(s)), visited[s] = true
+  q.push(s), visited[s] = true
   while (!q.empty()) {
     u = q.pop()
     for each edge(u, v) {