会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
jasoncool1
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
···
22
下一页
2018年10月27日
415. Add Strings
摘要: stringbuilder加入到首位的话用insert
阅读全文
posted @ 2018-10-27 10:52 jasoncool1
阅读(124)
评论(0)
推荐(0)
编辑
791. Custom Sort String
摘要: 1 class Solution { 2 public String customSortString(String S, String T) { 3 if(S.length() == 0 || T.length() == 0) return T; 4 int[] count = new int[26]; 5 for(int i ...
阅读全文
posted @ 2018-10-27 06:56 jasoncool1
阅读(92)
评论(0)
推荐(0)
编辑
2018年10月26日
825. Friends Of Appropriate Ages
摘要: 用presum的方法 统计有多少个小于等于这个数的年龄
阅读全文
posted @ 2018-10-26 23:26 jasoncool1
阅读(197)
评论(0)
推荐(0)
编辑
721. Accounts Merge
摘要: https://leetcode.com/problems/accounts-merge/discuss/109158/Java-Solution-(Build-graph-+-DFS-search)
阅读全文
posted @ 2018-10-26 22:14 jasoncool1
阅读(272)
评论(0)
推荐(0)
编辑
636. Exclusive Time of Functions
摘要: 每次都把区间放进去, 要是碰到end,就结束上一个start的区间
阅读全文
posted @ 2018-10-26 14:05 jasoncool1
阅读(164)
评论(0)
推荐(0)
编辑
304. Range Sum Query 2D - Immutable
摘要: 1 class NumMatrix { 2 int[][] sum; 3 4 public NumMatrix(int[][] matrix) { 5 int row = matrix.length; 6 if(row > 0){ 7 int col = matrix[0].length; 8 ...
阅读全文
posted @ 2018-10-26 11:50 jasoncool1
阅读(108)
评论(0)
推荐(0)
编辑
199. Binary Tree Right Side View
摘要: DFS不行 可能最后会有遗漏
阅读全文
posted @ 2018-10-26 06:34 jasoncool1
阅读(70)
评论(0)
推荐(0)
编辑
257. Binary Tree Paths
摘要: String可以直接加int
阅读全文
posted @ 2018-10-26 06:21 jasoncool1
阅读(72)
评论(0)
推荐(0)
编辑
125. Valid Palindrome
摘要: Character.isLetterOrDigit()
阅读全文
posted @ 2018-10-26 06:04 jasoncool1
阅读(128)
评论(0)
推荐(0)
编辑
146. LRU Cache
摘要: https://leetcode.com/problems/lru-cache/discuss/45922/JAVA-Easy-Version-To-Understand!!!!
阅读全文
posted @ 2018-10-26 05:40 jasoncool1
阅读(161)
评论(0)
推荐(0)
编辑
上一页
1
2
3
4
5
6
7
8
9
···
22
下一页
公告