Question DSA-TP-0052
MediumHow do the slow and fast pointers find the middle of a linked list?
- A.
Fast moves 3 steps
- B.
Slow moves 1 step and fast moves 2; when fast reaches the end, slow is at the middle
- C.
Both move 1 step
- D.
By counting nodes twice
Sign up free to see the answer and a step-by-step explanation.