会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
jasoncool1
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
11
12
13
14
15
16
17
18
19
···
22
下一页
2018年9月12日
58. Length of Last Word
摘要: 要是都是空格的话 返回的array长度就是0
阅读全文
posted @ 2018-09-12 02:20 jasoncool1
阅读(108)
评论(0)
推荐(0)
2018年9月11日
47. Permutations II
摘要: backtrack
阅读全文
posted @ 2018-09-11 06:41 jasoncool1
阅读(124)
评论(0)
推荐(0)
46. Permutations
摘要: backtrack
阅读全文
posted @ 2018-09-11 06:39 jasoncool1
阅读(100)
评论(0)
推荐(0)
43. Multiply Strings
摘要: https://leetcode.com/problems/multiply-strings/discuss/17605/Easiest-JAVA-Solution-with-Graph-Explanation
阅读全文
posted @ 2018-09-11 00:16 jasoncool1
阅读(112)
评论(0)
推荐(0)
2018年9月10日
40. Combination Sum II
摘要: 避免这个循环的重复 所以i>position && nums[i] == nums[i-1]
阅读全文
posted @ 2018-09-10 21:03 jasoncool1
阅读(122)
评论(0)
推荐(0)
39. Combination Sum
摘要: 为了避免前面选了 到后面选的时候 又选到了后面的前面 加一个position作为标记 循环从position开始
阅读全文
posted @ 2018-09-10 11:47 jasoncool1
阅读(95)
评论(0)
推荐(0)
38. Count and Say
摘要: 1 class Solution { 2 public String countAndSay(int n) { 3 String str = "1"; 4 if(n == 1) return str; 5 return helper(str, n - 1); 6 7 8 } 9 ...
阅读全文
posted @ 2018-09-10 11:14 jasoncool1
阅读(120)
评论(0)
推荐(0)
36. Valid Sudoku
摘要: https://leetcode.com/problems/valid-sudoku/discuss/15472/Short+Simple-Java-using-Strings
阅读全文
posted @ 2018-09-10 09:34 jasoncool1
阅读(98)
评论(0)
推荐(0)
34. Find First and Last Position of Element in Sorted Array
摘要: 对mid两边进行binary search 得出边界
阅读全文
posted @ 2018-09-10 06:14 jasoncool1
阅读(97)
评论(0)
推荐(0)
2018年9月8日
35. Search Insert Position
摘要: easy最后返回的是nums.length
阅读全文
posted @ 2018-09-08 08:05 jasoncool1
阅读(118)
评论(0)
推荐(0)
上一页
1
···
11
12
13
14
15
16
17
18
19
···
22
下一页
公告