OSDN Git Service
(root)
/
oi-wiki
/
main.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
977904a
)
fix: remove an excess right parenthesis
author
Joshua Astray
<JoshuaSRKF@gmail.com>
Tue, 27 Aug 2019 10:26:50 +0000
(18:26 +0800)
committer
GitHub
<noreply@github.com>
Tue, 27 Aug 2019 10:26:50 +0000
(18:26 +0800)
docs/graph/bfs.md
patch
|
blob
|
history
diff --git
a/docs/graph/bfs.md
b/docs/graph/bfs.md
index
b36906c
..
f49b7fb
100644
(file)
--- a/
docs/graph/bfs.md
+++ b/
docs/graph/bfs.md
@@
-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) {