【LeetCode & 劍指offer刷題】矩陣題1:4 有序矩陣中的查詢( 74. Search a 2D Matrix )(系列)
阿新 • • 發佈:2019-01-05
【LeetCode & 劍指offer 刷題筆記】目錄(持續更新中...)
74. Search a 2D Matrix
Write an efficient algorithm that searches for a value in an m x n 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.
- Integers in each row are sorted in ascending from left to right.
- Integers i n each column are sorted in ascending from top to bottom.