From b79044708c94d36c162fe3619473b002134ada49 Mon Sep 17 00:00:00 2001 From: spiritstone Date: Tue, 2 Nov 2021 00:38:17 +0900 Subject: [PATCH] Update 1697.cpp --- "10\354\233\224 15\354\235\274 - DFS & BFS/1697.cpp" | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git "a/10\354\233\224 15\354\235\274 - DFS & BFS/1697.cpp" "b/10\354\233\224 15\354\235\274 - DFS & BFS/1697.cpp" index ea77b28..5147ba1 100644 --- "a/10\354\233\224 15\354\235\274 - DFS & BFS/1697.cpp" +++ "b/10\354\233\224 15\354\235\274 - DFS & BFS/1697.cpp" @@ -16,7 +16,7 @@ int bfs() { q.push(N); // int index = N; int time = 0; - visited[N] = 1; + visited[N] = 1; // 시작 위치에는 당연히 방문 했으니까 1로 초기화 while(!q.empty()) { int N = q.front(); // 반복문 돌면서 수빈이의 위치 갱신 q.pop();