From 3126e7974384e9e89a25979325af4a9d45bb7a50 Mon Sep 17 00:00:00 2001 From: Joshua Astray Date: Tue, 27 Aug 2019 18:26:50 +0800 Subject: [PATCH] fix: remove an excess right parenthesis --- docs/graph/bfs.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/graph/bfs.md b/docs/graph/bfs.md index b36906ca..f49b7fb7 100644 --- 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) { -- 2.11.0