peek
RU: подглядеть
To view the highest-priority element without removing it from a priority queue. In a binary heap, peek() returns the root element in O(1) time without modification.
RU: подглядеть
To view the highest-priority element without removing it from a priority queue. In a binary heap, peek() returns the root element in O(1) time without modification.