본문으로 건너뛰기
0

이 레슨은 당분간 영어로 제공돼요.

Always the next most urgent

A hospital sees the most urgent patient first, not the one who arrived first. A priority queue hands you the most important item next, and a heap is the structure that makes it fast. Task schedulers, top-ten boards and route finders all rely on one, and Python ships it in heapq.