← Amazon questions

Interleave two halves of a linked list

Filed under Amazon

Given the head of a singly linked list with an even length 2n in the format a1 -> a2 -> ... -> an -> b1 -> b2 -> ... -> bn, interleave the two halves into a single list structured as a1 -> b1 -> a2 ->…

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 Amazon questions

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