Learn
Practice
Interview
Resources
Newsletter
F
Toggle theme
0
F
0
Toggle menu
Animations
← Back to All Animations
Merge Two Sorted Lists
Bookmark
Input
Example 1
Example 2
Example 3
Custom
list1
=
[1, 2, 4]
,
list2
=
[1, 3, 4]
list1:
1
2
4
list2:
1
3
4
result:
list1:
1
2
4
list2:
1
3
4
result:
list1:
1
2
4
p
list2:
1
3
4
q
result:
0
dummy
current
list1:
1
2
4
p
list2:
1
3
4
q
result:
0
dummy
1
current
list1:
1
2
4
p
list2:
1
3
4
q
result:
0
dummy
1
1
current
list1:
1
2
4
p
list2:
1
3
4
q
result:
0
dummy
1
1
current
list1:
1
2
4
p
list2:
1
3
4
q
result:
0
dummy
1
1
2
current
list1:
1
2
4
p
list2:
1
3
4
q
result:
0
dummy
1
1
2
3
current
list1:
1
2
4
p
list2:
1
3
4
q
result:
0
dummy
1
1
2
3
current
list1:
1
2
4
list2:
1
3
4
q
result:
0
dummy
1
1
2
3
4
current
list1:
1
2
4
list2:
1
3
4
result:
0
dummy
1
1
2
3
4
4
algo
master
.
io
Step:
Start of algorithm
0 / 25
Input
Example 1
Example 2
Example 3
Custom
list1
=
[1, 2, 4]
,
list2
=
[1, 3, 4]
0 / 25
algo
master
.
io
Step:
Start of algorithm