This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
Learn that offer and poll are O(log n) due to heap rebalancing, while peek is O(1).
You've completed the free preview. Subscribe to unlock every lesson in every course.