← OYO questions

Reorder Linked List Alternating Ends

Filed under OYO

Given the head of a singly linked list `N1 -> N2 -> ... -> Nk`, reorder the list in-place to follow the pattern `N1 -> Nk -> N2 -> Nk-1 -> ...`. You may not modify node values; only pointer links may…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related OYO questions

Collected from public candidate posts and coding forums. Updated Nov 2026.