Reorder List
LeetCode 143 • Medium • L0→Ln→L1→Ln-1→…
In-place reorder: 1. Find middle (fast/slow) → 2. Reverse second half → 3. Merge alternately.
TimeO(n)3 passes
SpaceO(1)in-place
Phase: —
Step: —
Slow / First
Fast
Second
First
—
Second
—
Ready
Press Play. Step 1: Find middle with slow/fast. Step 2: Split & reverse second half. Step 3: Merge first and second alternately.