2026. 10. 04.우선순위 큐와 힙: 계속 들어오는 후보 다루기배열과 트리를 함께 보며 힙을 고치고, 스트림에서 가장 큰 K개를 유지합니다.기록data structureheappriority queue