public boolean searchMatrix_Good(int[][] matrix, int target) {
        int m = 0, n = matrix[0].length - 1;
        while (m < matrix.length && n >= 0) {
            if (matrix[m][n] == target)
                return true;
            else if (matrix[m][n] < target)
                ++m;
            else
                --n;
        }
        return false;
    }