摘要: 阅读全文
posted @ 2022-11-14 21:24 ·LastWhisper 阅读(11) 评论(0) 推荐(0)
摘要: class Solution { public void setZeroes(int[][] matrix) { Set<Integer> row_zero = new HashSet<>(); Set<Integer> col_zero = new HashSet<>(); int row = m 阅读全文
posted @ 2022-11-09 16:31 ·LastWhisper 阅读(19) 评论(0) 推荐(0)
摘要: class Solution { public boolean isValidSudoku(char[][] board) { int row[][] = new int[9][10]; int col[][] = new int[9][10]; int box[][] = new int[9][1 阅读全文
posted @ 2022-11-09 15:59 ·LastWhisper 阅读(13) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-11-03 21:34 ·LastWhisper 阅读(21) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2022-11-03 19:36 ·LastWhisper 阅读(19) 评论(0) 推荐(0)
摘要: 力扣官方题解里的双指针+排序方法里,最后return 的值是 Arrays.copyOfRange(intersection,0,index) 这里为什么不能直接返回intersection数组: 如果定义的数组intersection没有填满的话,未填值的地方会自动补为0. 使用copyOfRan 阅读全文
posted @ 2022-10-04 19:03 ·LastWhisper 阅读(25) 评论(0) 推荐(0)