Solved LeetCode program · 647 of 1,000
#0876 · Middle of the Linked List
Original English source
The values is a list of 1, 2, 3, 4, and 5. The last is the last position of values. The middle is 0. The fast is 0.
Repeat while fast is less than last.
Increase fast by 2. Add 1 to middle.
For every spot from middle to last.
Show item spot of values.
Expected stdout
3 4 5