← Amazon questions

Convert sorted 2D matrix to 1D sorted array

Filed under Amazon

Given a 2D matrix where each row is individually sorted in non-decreasing order, transform it into a single fully sorted 1D array. Provide an optimal implementation along with time and space…

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.