I have an assignment to write an algorithm (not in any particular language, just pseudo-code) that receives a matrix [size: M x N] that is sorted in a way that all of it\'s
public static boolean find(int a[][],int rows,int cols,int x){ int m=0; int n=cols-1; while(m=0){ if(a[m][n]==x) return1; else if(a[m][n]>x) n--; else m++; } }