You are given an m x n integer matrix matrix with the following two properties:
Given an integer target, return True if target is in matrix, or False otherwise.
You must write a solution in O(log(m * n)) time.
1 3 5 7 10 11 16 20 23 30 34 60
Input: matrix = [[1,3,5,7],[10,11,16,20],[23,30,34,60]], target = 3 Output: True Explanation: 3 is in the first row at index 1.
1 3 5 7 10 11 16 20 23 30 34 60
Input: matrix = [[1,3,5,7],[10,11,16,20],[23,30,34,60]], target = 13 Output: False Explanation: 13 does not appear in the matrix.
m == matrix.lengthn == matrix[0].length1 <= m, n <= 100-10^4 <= matrix[i][j] <= 10^4-10^4 <= target <= 10^4matrix = [[1,3,5,7],[10,11,16,20],[23,30,34,60]], target = 3