Skip to main content
Search a 2D Matrix | AlgoCracked
AlgoCracked
ProblemsSearch a 2D Matrix
Medium48.0% acceptance
Blind75ArrayBinary SearchMatrix

Search a 2D Matrix

You are given an m × n integer matrix with two properties: each row is sorted ascending, and the first value of each row is greater than the last value of the previous row. Return true if target is in the matrix. Input format Input is [matrix, target] , e.g. [[[1,3,5,7],[10,11,16,20],[23,30,34,60]],3] .

Loading workspace…