โ† Expedia questions

Search an element in a row and column-wise sorted matrix

Filed under Expedia

Given an M x N matrix where each row and column is sorted in ascending order, write an efficient algorithm to determine if a target value 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 Expedia questions

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