← Amazon questions

Search key in linked list and swap with previous node

Filed under Amazon

Given a linked list and a search key, find the node containing the key and swap it with its predecessor node.

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.