← Amazon questions

Linearise 2D linked list in single traversal and constant space

Filed under Amazon

Given a 2D linked list where nodes contain a 'right' pointer to the next node in the row and a 'down' pointer to the start of the next row, flatten the structure into a single singly-linked list in a…

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.