nitind2411 / hacktoberfest-2022-DSA-CP

This Repository will contain Concepts of DSA and Competitive Programming in any language Mostly in C++
12 stars 33 forks source link

Created search_2d_matrix.cpp #73

Closed bilwa496 closed 1 year ago

bilwa496 commented 1 year ago

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 is greater than the last integer of the previous row.