programmers 42626 java

    [프로그래머스, 42626] 더 맵게 (java)

    https://school.programmers.co.kr/learn/courses/30/lessons/42626 프로그래머스SW개발자를 위한 평가, 교육, 채용까지 Total Solution을 제공하는 개발자 성장을 위한 베이스캠프programmers.co.kr메모리: 128 MB, 시간: 1656.40 ms사용 알고리즘: 자료구조import java.util.*;class Solution { public int solution(int[] scoville, int K) { // 스코빌 지수를 오름차순으로 정렬해 담을 우선순위 큐 PriorityQueue pq = new PriorityQueue(); for(int s : scoville) pq.a..