摘要: 用presum的方法 统计有多少个小于等于这个数的年龄 阅读全文
posted @ 2018-10-26 23:26 jasoncool1 阅读(197) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/accounts-merge/discuss/109158/Java-Solution-(Build-graph-+-DFS-search) 阅读全文
posted @ 2018-10-26 22:14 jasoncool1 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 每次都把区间放进去, 要是碰到end,就结束上一个start的区间 阅读全文
posted @ 2018-10-26 14:05 jasoncool1 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 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) 编辑
摘要: DFS不行 可能最后会有遗漏 阅读全文
posted @ 2018-10-26 06:34 jasoncool1 阅读(70) 评论(0) 推荐(0) 编辑
摘要: String可以直接加int 阅读全文
posted @ 2018-10-26 06:21 jasoncool1 阅读(72) 评论(0) 推荐(0) 编辑
摘要: Character.isLetterOrDigit() 阅读全文
posted @ 2018-10-26 06:04 jasoncool1 阅读(128) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/lru-cache/discuss/45922/JAVA-Easy-Version-To-Understand!!!! 阅读全文
posted @ 2018-10-26 05:40 jasoncool1 阅读(161) 评论(0) 推荐(0) 编辑