diff --git a/sep037/BFS/BOJ_11725.swift b/sep037/BFS/BOJ_11725.swift new file mode 100644 index 0000000..90486df --- /dev/null +++ b/sep037/BFS/BOJ_11725.swift @@ -0,0 +1,41 @@ +// +// main.swift +// 11725 +// +// Created by Seungeun Park on 4/10/25. +// + +import Foundation + +let N = Int(readLine()!)! + +var graph = Array(repeating: [Int](), count: N+1) +var parent = Array(repeating:0, count: N+1) +var visited = Array(repeating: false, count: N+1) + +for _ in 0..