Search a 2D matrix sorted by rows and columns
Filed under Snapdeal
The question
Given a 2D array where each row and column is sorted in ascending order, write an efficient algorithm to search for a target value.
No write-up yet. Related questions below have one.
Related Snapdeal questions
Collected from public candidate posts and coding forums. Updated Nov 2026.