Java 优先级队列
| 2020-10-29
0  |  0 分钟
PriorityQueue优先级队列,基于实现,默认构造小顶堆,如果想用大顶堆可调用参数为Comparator的构造方法
PriorityQueue内部实现:
compare()方法返回值大于0,则说明
目录