摘要: public List<List<Integer>> threeSum(int[] nums) { List<List<Integer>> ans = new ArrayList<>(); List<Integer> combine = new ArrayList<>(); dfs(nums, an 阅读全文
posted @ 2022-02-06 21:42 明卿册 阅读(18) 评论(0) 推荐(0) 编辑
摘要: public void rotate(int[][] matrix) { int n = matrix.length, m= n-1; for(int i = 0; i < n/2; i++) { for(int j = 0; j < n/2; j++) { int tmp = matrix[i][ 阅读全文
posted @ 2022-02-06 21:32 明卿册 阅读(16) 评论(0) 推荐(0) 编辑