<Algorithm> 98. 더맵게(프로그래머스)
BFine
1. 더맵게(프로그래머스)간단한 문제해결능력 문제Comparator.naturalOrder() 이랑 Collections.ReverseOrder() 메소드를 잘 활용해야 겠다.1234567891011121314151617181920212223242526272829303132333435363738394041424344import java.util.Arrays;import java.util.Comparator;import java.util.PriorityQueue;import java.util.stream.IntStream; public class Solution { public int solution(int[] scoville, int K) { Arrays.sort(scoville); /**********..