← Microsoft questions

Common element in row-wise sorted 2D array

Filed under Microsoft

Given a 2D array where each row is sorted in ascending order, find an element that is present in all rows. If multiple exist, any can be returned, or report if none exists.

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 Microsoft questions

Collected from public candidate posts and coding forums. Updated Nov 2026.