순위1 순위 - JAVA, 플로이드 워셜, BFS https://school.programmers.co.kr/learn/courses/30/lessons/49191 프로그래머스SW개발자를 위한 평가, 교육의 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr 코드 & 풀이플로이드 워셜 방식class Solution { public int solution(int n, int[][] results) { boolean[][] graph = new boolean[n + 1][n + 1]; for (int[] result : results) { graph[result[0]][result[1]] = true; } .. 2025. 5. 22. 이전 1 다음