Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
ahmedtd
4y ago
0 comments
Save
Share
You don't pop the min, you pop the top of the stack.
0 comments
1 comments · 1 top-level
top
newest
oldest
arcastroe
4y ago
Yes. Of course. But what do you do when the top of the stack IS the min? Your new min should change, but you won't have the information to update to the second min unless you do the trick in the article.
j
/
k
navigate · click thread line to collapse