0021. Merge Two Sorted Lists
Interactive step-by-step visualization of iterative and recursive merge approaches
Iterative
Recursive
List 1:
List 2:
[1,2,4] + [1,3,4]
[] + []
[] + [0]
[1,3,5,7] + [2,4,6,8]
[-3,-1,2] + [-2,0,5]
[1,1,1] + [1,1]
Step
Play
Reset
Speed:
5
Press
Step
or
Play
to begin.
Result:
--