You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe the implementation of container/heap implies that the 0 element is always the
minimum element. Thus you can always peek at the minimum element without actually
popping it by simply looking at h[0]. But the docs don't actually state this, and there
is no Top method that lets you look at the minimum element without removing it.
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: