list 0
list 1
list 2
1
4
7
2
5
3
6
8
[0][1][2][3][4][5][6][7]
merged output
Brute force · scan k heads each round
▸1given k sorted lists2repeat until all empty:3 scan the ≤ k current heads4 move the minimum to output5 advance that list
state
- k lists3
- total8