← Amazon questions

Sort one matrix based on another matrix

Filed under Amazon

Given two matrices, sort the rows of the first matrix based on the order of elements found in the second matrix or a specific sorting criteria derived from the second matrix.

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.