โ† Amazon questions

Sort the Linked List

Filed under Amazon

Given the head of a linked list, return the list after sorting it in ascending order in O(n log n) time and O(1) memory (excluding recursion stack).

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.