CodingReported in a candidate post, May 2021
Flatten a row-and-column sorted 2D array into a sorted 1D array
Filed under KLA
The question
Given a 2D array sorted across both rows and columns, return a single sorted 1D array containing all its elements.
No write-up yet. Related questions below have one.
Related KLA questions
Collected from public candidate posts and coding forums. Updated Nov 2026.