'''public class Solution {

public boolean searchMatrix(int[][] matrix, int target) {

if(matrix==null || matrix.length<=0){

return false;

}

int row = 0;

int col = matrix[0].length-1;

while (row<matrix.length && col>=0) {

int temp = matrix[row][col];

if(target>temp){

row++;

}else if (target<temp) {

col--;

}else {

return true;

}

}

return false;

}

}