← Amazon questions

Sort an alternating ascending and descending linked list

Filed under Amazon

Given a linked list where nodes alternate between ascending and descending order (e.g., 10->60->30->40->50->20), sort the list in ascending order.

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.