2021年5月28日
摘要: package leetcode; public class demo_55 { public boolean canJump(int[] nums) { int end=nums.length-1; boolean flag=true; while(end>0) { int length=0; f 阅读全文
posted @ 2021-05-28 20:21 一仟零一夜丶 阅读(33) 评论(0) 推荐(0)
摘要: package leetcode; public class demo_50 { public double myPow(double x, int n) { if(n==0) {return 1.0;} if(n<0) { return 1.0/backtrack(x, -n); } return 阅读全文
posted @ 2021-05-28 19:23 一仟零一夜丶 阅读(50) 评论(0) 推荐(0)
摘要: package leetcode; import java.util.ArrayList; import java.util.List; public class demo_22 { public List<String> generateParenthesis(int n) { List<Stri 阅读全文
posted @ 2021-05-28 16:06 一仟零一夜丶 阅读(54) 评论(0) 推荐(0)
摘要: package leetcode; import java.util.ArrayList; import java.util.List; public class demo_54 { public List<Integer> spiralOrder(int[][] matrix) { List<In 阅读全文
posted @ 2021-05-28 14:52 一仟零一夜丶 阅读(55) 评论(0) 推荐(0)