Skip to content

Commit

Permalink
Update 1697.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritstone committed Nov 1, 2021
1 parent b116ed6 commit b790447
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 10월 15일 - DFS & BFS/1697.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit b790447

Please sign in to comment.