1. N번째 큰 수
package problem_solving.queue;
import java.util.Collections;
import java.util.PriorityQueue;
import java.util.Scanner;
public class BaekJoon_2075 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.next());
PriorityQueue<Integer> pq = new PriorityQueue<>(Collections.reverseOrder());
int powerN = n*n;
while( powerN -- >0) {
pq.offer(Integer.parseInt(sc.next()));
}
while(n-- > 1 ) {
pq.poll();
}
System.out.println(pq.poll());
}
}
2. 백준 레벨 변동
3. 풀이 유형