摘要:
用presum的方法 统计有多少个小于等于这个数的年龄 阅读全文
摘要:
https://leetcode.com/problems/accounts-merge/discuss/109158/Java-Solution-(Build-graph-+-DFS-search) 阅读全文
摘要:
每次都把区间放进去, 要是碰到end,就结束上一个start的区间 阅读全文
摘要:
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 ... 阅读全文
摘要:
DFS不行 可能最后会有遗漏 阅读全文
摘要:
String可以直接加int 阅读全文
摘要:
Character.isLetterOrDigit() 阅读全文
摘要:
https://leetcode.com/problems/lru-cache/discuss/45922/JAVA-Easy-Version-To-Understand!!!! 阅读全文