Priority Queue

Use Priority Queue on LeetCode

Copy this snippet and paste it to the bottom of your LeetCode editor so that you can use the Priority Queue.

Don’t use it where the problem itself is to implement a Priority Queue.