上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 25 下一页
  2021年6月19日
摘要: package leetcode; public class demo_80 { public int removeDuplicates(int[] nums) { int count=1; int length=nums.length; for(int i=1;i<length;i++) { // 阅读全文
posted @ 2021-06-19 11:32 一仟零一夜丶 阅读(44) 评论(0) 推荐(0)
摘要: package leetcode; public class demo_79 { //全局变量,如果找到就返回 int flag=0; public boolean exist(char[][] board, String word) { int[][] visited=new int[board. 阅读全文
posted @ 2021-06-19 09:57 一仟零一夜丶 阅读(64) 评论(0) 推荐(0)
  2021年6月18日
摘要: package leetcode; import java.util.Stack; public class demo_71 { public String simplifyPath(String path) { String[] str=path.split("/"); Stack<String> 阅读全文
posted @ 2021-06-18 17:39 一仟零一夜丶 阅读(45) 评论(0) 推荐(0)
  2021年6月12日
摘要: package leetcode; import java.util.ArrayList; import java.util.List; public class demo_78 { public List<List<Integer>> subsets(int[] nums) { List<List 阅读全文
posted @ 2021-06-12 11:45 一仟零一夜丶 阅读(38) 评论(0) 推荐(0)
摘要: package leetcode; import java.util.ArrayList; import java.util.List; public class demo_77 { public List<List<Integer>> combine(int n, int k) { List<Li 阅读全文
posted @ 2021-06-12 11:32 一仟零一夜丶 阅读(25) 评论(0) 推荐(0)
摘要: package leetcode; import java.util.ArrayList; import java.util.Arrays; import java.util.HashMap; import java.util.List; public class demo_49 { public 阅读全文
posted @ 2021-06-12 10:42 一仟零一夜丶 阅读(42) 评论(0) 推荐(0)
  2021年6月11日
摘要: package leetcode; public class demo_33 { public int search(int[] nums, int target) { int left=0; int right=nums.length-1; while(left<=right) { if(targ 阅读全文
posted @ 2021-06-11 20:16 一仟零一夜丶 阅读(33) 评论(0) 推荐(0)
  2021年6月5日
摘要: package leetcode; public class demo_75 { public void sortColors(int[] nums) { int left=0; int right=nums.length-1; int swap; for(int i=0;i<=right;i++) 阅读全文
posted @ 2021-06-05 16:39 一仟零一夜丶 阅读(49) 评论(0) 推荐(0)
摘要: package leetcode; public class demo_74 { public boolean searchMatrix(int[][] matrix, int target) { //如果目标值大于数组最大值或小于数组最小值,则不存在 if(matrix[0][0]>target| 阅读全文
posted @ 2021-06-05 10:39 一仟零一夜丶 阅读(58) 评论(0) 推荐(0)
  2021年6月4日
摘要: package leetcode; public class demo_64 { public int minPathSum(int[][] grid) { int dp[][]=new int[grid.length][grid[0].length]; dp[0][0]=grid[0][0]; f 阅读全文
posted @ 2021-06-04 22:23 一仟零一夜丶 阅读(36) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 25 下一页