[프로그래머스] 구명보트
import java.util.*; class Solution { public int solution(int[] people, int limit) { int answer = 0; int minPeople=0; int maxPeople=people.length-1; Arrays.sort(people); while(true){ if(minPeople==maxPeople){ answer++; break; } if(minPeople+1==maxPeople){ if(people[minPeople] + people[maxPeople]
2020.06.22