← Amazon questions

Rearrange nodes in a linked list

Filed under Amazon

Given a singly linked list, rearrange its nodes in-place such that the first node is followed by the last node, the second by the second-to-last, and so on. For example, a->b->c->d->e becomes…

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.