반응형 구명보트1 [Programmers] Lv2: 구명보트(42885) 문제- 링크: https://school.programmers.co.kr/learn/courses/30/lessons/42885?language=java 풀이더보기import java.util.*;class Solution { public int solution(int[] people, int limit) { int answer = 0; Arrays.sort(people); int i = 0; int j = people.length - 1; while (i 2025. 2. 12. 이전 1 다음 반응형