摘要: 传送门 Solution 思路1: 暴力 class Solution { public int[] nextGreaterElement(int[] nums1, int[] nums2) { int[] ans = new int[nums1.length]; int cur = 0; for 阅读全文
posted @ 2021-10-26 23:19 Frontierone 阅读(21) 评论(0) 推荐(0) 编辑
摘要: 传送门 Solution 思路1: 暴力搜索 class Solution { public boolean searchMatrix(int[][] matrix, int target) { for (int[] row: matrix) { for (int x : row) { if (x 阅读全文
posted @ 2021-10-26 23:02 Frontierone 阅读(30) 评论(0) 推荐(0) 编辑