I forgot a little, so I'll make a note here.
Usually the Priority Queue is the minimum heap.
PriorityQueue
To be able to get this in order from the maximum heap
PriorityQueue
You can do it.
Later, if you want to use a specific field of the object
PriorityQueue
You can do it.
Recommended Posts