โ† Amazon questions

Swap two node pointers in a linked list

Filed under Amazon

Given a singly linked list and two values v1 and v2, swap the nodes containing these values. You must swap the nodes themselves, not just their values.

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.