Tag Archives: search 2d array

Search in a 2D Array or Matrix

Write an efficient algorithm that searches for a value in an m x n matrix. Matrix can have two forms. Solve it for each form of the matrix. This matrix has the following properties: Version 1 Integers in each row are sorted from left to right. The first integer of each row is greater than […]