Course contentsShow
Java
Lesson 1190 of 2,87027. Queue and Deque ImplementationsPro lesson

Iteration Order Is Not Priority Order

Understand that iterating a PriorityQueue does not yield elements in priority order; only poll guarantees order.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.