[ํ๋ก๊ทธ๋๋จธ์ค Lv3] ๊ฐ์ฅ ๋จผ ๋
ธ๋ | ์๋ฐ
ยท
๐ Coding Test/Programmers Lv3
๋ฌธ์ ๊ฐ์ฅ ๋จผ ๋
ธ๋ํ์ดimport java.util.*;class Solution { public int solution(int n, int[][] edge) { int answer = 0; int[] visited = new int[n + 1]; ArrayList> graph = new ArrayList(); for(int i = 0; i ()); } for(int i = 0; i > graph, int[] visited, int start) { Queue q = new LinkedList(); q.offer(start); visited[start] = 1; ..