기초 - PriorityQueue

chaemin·2024년 5월 21일

기초

목록 보기
11/21

작은거 먼저

PriorityQueue<Integer> minQ = new PriorityQueue<>();

큰거 먼저

PriorityQueue<Integer> maxQ = new PriorityQueue<>((a, b) -> b - a);

0개의 댓글