Leetcode 0074. Search a 2D Matrix

Posted on Tue 29 March 2022 in Leetcode • Tagged with binary-search

Question Link : https://leetcode.com/problems/search-a-2d-matrix/

Difficulty: Medium

Question

Write an efficient algorithm that searches for a value target in an m x n integer matrix matrix. This matrix has the following properties:

Integers in each row are sorted from left to right. The first integer of each row …


Continue reading