You are given an m × n integer matrix with the following properties:
Given an integer target, return true if target is in the matrix,
otherwise return false.
targetInput: [[1,3,5,7],[10,11,16,20],[23,30,34,60]] 3 Output: true
Input: [[1,3,5,7],[10,11,16,20],[23,30,34,60]] 13 Output: false
Print true or false only.
No submissions yet.
Discuss binary search on matrix, row reduction, and flattening techniques.