← Amazon questions

Find kth smallest element in row-wise and column-wise sorted matrix

Filed under Amazon · Also reported at Accolite

Find the k-th smallest element in an n x n matrix where rows and columns are sorted in ascending order. Handle duplicate elements such that distinct values count towards the k-th position.

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.