摘要: 1.Comparator 定制排序 Collections.sort(arrayList, new Comparator<Integer>() { @Override public int compare(Integer o1, Integer o2) { return o1.compareTo(o 阅读全文
posted @ 2022-07-12 21:09 Abandoned_Software 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 7月12日 问题: 给你一个 m x n 的矩阵,最开始的时候,每个单元格中的值都是 0。 另有一个二维索引数组 indices,indices[i] = [ri, ci] 指向矩阵中的某个位置,其中 ri 和 ci 分别表示指定的行和列(从 0 开始编号)。 对 indices[i] 所指向的每个 阅读全文
posted @ 2022-07-12 11:57 Abandoned_Software 阅读(24) 评论(0) 推荐(0) 编辑