Always get the most urgent item next, even while new items keep arriving.
Arrays: cells, indexes, adding a value at the end, and what O(1) and O(n) mean
Binary trees: node, child, level, height and level order
Lesson 1 · Always the smallest first
Next: 12 · Graphs: representation, BFS and DFS · 7 lessons · 1 h 35 min
Try the same model with your own values. No checks, nothing recorded.
Open the playground