← Snapdeal questions

Search a 2D matrix sorted row-wise and column-wise in O(n + n)

Filed under Snapdeal

Write an efficient algorithm that searches for a value target in an m x n integer matrix. This matrix has the following properties: Integers in each row are sorted in ascending order from left to…

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

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