当排列的优先级就是时间顺序时,那么Priority Queue即heap就坍塌成Queue,因为Queue一定保证后插入的就会在最后面。
Last updated 4 years ago
Was this helpful?