programmers 49189 java

    [프로그래머스, 49189] 가장 먼 노드 (java)

    https://school.programmers.co.kr/learn/courses/30/lessons/49189 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr메모리: 119 MB, 시간: 31.81 ms사용 알고리즘: 그래프, 다익스트라import java.util.*;class Solution { public int solution(int n, int[][] edge) { int answer = 0; int maxLength = 0; // 최단거리를 저장할 배열 int[] minLength = new int[n + 1]; Ar..