You are given an m x n integer matrix with each row sorted in non-decreasing order and the first integer of each row greater than the last integer of the previous row. You need to determine if a given target integer is present in the matrix. The solution must operate with a time complexity of O(log(m * n)).
Click Run to execute sample tests.