Skip to content
RED SAGSkills
medium10 pts · first answer countsstacks-and-queues

Middle node of an even-length list

Both pointers start at head. The loop is while (fast && fast.next) { slow = slow.next; fast = fast.next.next }. For the list 1 to 6, which node is slow at the end?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions