一、题目内容
二、题解
解法1:
思路
代码
public class Solution {public int[] findElement(int[][] mat, int n, int m, int x) {// write code hereint[] ans = new int[2];for(int i = n-1;i>=0;i--){if(mat[i][0]>x){continue;}for(int j = 0;j<m;j++){if(mat[i][j] == x){ans[0] = i;ans[1] = j;}}}return ans;}}
