Search a 2D Matrix

Solution Code

Time Complexity

O(log(m n)

Space Complexity

O(1)