← Oracle questions

Search in row-wise and column-wise sorted matrix

Filed under Oracle · Also reported at Accolite, Athenahealth, Brane Enterprises, DP World, Goldman Sachs, Harness, Increff, Infibeam Avenues Limited and 7 more

Given an `m x n` matrix where each row and column is sorted in ascending order, write an efficient function to determine if a target integer `target` exists in the matrix.

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

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