프로그래머스) 섬 연결하기 - 자바
package practice;import java.util.Arrays;public class Pro_섬_연결하기 { static int[] parent; public static void main(String[] args) { Solution solution = new Solution(); int n = 4; int[][] costs = {{0, 1, 1}, {0, 2, 2}, {1, 2, 5}, {1, 3, 1}, {2, 3, 8}}; System.out.println(solution.solution(n, costs)); } static class Solution{ public int solution(int n, ..