function Find(target, array)
{
const rowlength = array.length,collength = array[0].length;
let i = 0,j = collength - 1;
while(i < rowlength && j >= 0){
if (array[i][j] === target){
return true
}
if (array[i][j] > target){
j --;
}else if (array[i][j] < target){
i ++
}
}
return false
}
var stack1=[],stack2=[];
function push(node)
{
stack1.push(node);
}
function pop()
{
if(stack2.length==0){
if(stack1.length==0){
return null;
}else{
var len = stack1.length;
for(var i=0;i<len;i++){
stack2.push(stack1.pop());
}
return stack2.pop();
}
}else{
return stack2.pop();
}
}