99. Search a 2D Matrix II

Find target in a matrix where each row and each column is sorted in ascending order.
Example 1
Input: matrix = [[1,4,7,...]], target = 20
Output: False
Explanation: The element 20 is not present.
Example 2
Input: matrix = [[1,4],[2,5]], target = 5
Output: True
Explanation: The element 5 is present in the matrix.
arraysmediumrecursion
JavaScript
Loading...
Line 1, Char 1