java 代码
class Solution {
public boolean searchArray(int[][] array, int target) {
for(int x=0; x<array.length; x++) {
int yLen = array[x].length-1;
for(int y=0; y<=yLen; y++) {
if(array[x][y]==target){
return true;
}else if(array[x][y]>target){
yLen = y-1;
break;
}
}
}
return false;
}
}