Learn
Practice
Interview
Resources
Newsletter
F
Toggle theme
0
F
0
Toggle menu
Animations
← Back to All Animations
Middle of the Linked List
Bookmark
Convert to Array
Two-Pass
Slow & Fast
Input
Odd Length
Even Length
Single Node
Custom
values
=
[1, 2, 3, 4, 5]
1
2
3
4
5
head
arr
0
1
2
3
4
1
2
3
4
5
head
arr
0
1
2
3
4
1
2
3
4
5
head
arr
0
1
2
3
4
1
2
3
4
5
head
curr
arr
1
0
1
2
3
4
1
2
3
4
5
head
curr
arr
1
0
2
1
2
3
4
1
2
3
4
5
head
curr
arr
1
0
2
1
3
2
3
4
1
2
3
4
5
head
curr
arr
1
0
2
1
3
2
4
3
4
1
2
3
4
5
head
curr
arr
1
0
2
1
3
2
4
3
5
4
1
2
3
4
5
head
arr
1
0
2
1
3
2
4
3
5
4
1
2
3
4
5
head
arr
1
0
2
1
3
2
4
3
5
4
algo
master
.
io
Step:
Start: copy the nodes into an array so they can be indexed
0 / 8
Input
Odd Length
Even Length
Single Node
Custom
values
=
[1, 2, 3, 4, 5]
0 / 8
algo
master
.
io
Step:
Start: copy the nodes into an array so they can be indexed