上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 22 下一页
摘要: 1 class Solution { 2 public List findAnagrams(String s, String p) { 3 List res = new ArrayList(); 4 if(s.length() == 0 || s.length() 0 ) count--; 15 end++; 16... 阅读全文
posted @ 2018-10-22 11:39 jasoncool1 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 用Dequeue 阅读全文
posted @ 2018-10-22 06:00 jasoncool1 阅读(109) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/minimum-window-substring/discuss/26808/Here-is-a-10-line-template-that-can-solve-most-'substring'-problems 阅读全文
posted @ 2018-10-22 04:49 jasoncool1 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 1 class Solution { 2 public boolean validPalindrome(String s) { 3 if(s.length() == 0) return true; 4 int i = 0, j = s.length() - 1; 5 while(i < j){ 6 if(... 阅读全文
posted @ 2018-10-22 03:48 jasoncool1 阅读(102) 评论(0) 推荐(0) 编辑
摘要: 记录前面的sum https://leetcode.com/problems/subarray-sum-equals-k/discuss/102106/Java-Solution-PreSum-+-HashMap 阅读全文
posted @ 2018-10-22 03:04 jasoncool1 阅读(118) 评论(0) 推荐(0) 编辑
摘要: BFS 阅读全文
posted @ 2018-10-21 14:16 jasoncool1 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 好难啊 https://leetcode.com/problems/regular-expression-matching/discuss/180290/JAVA-DP-solution-with-detailed-explanation 阅读全文
posted @ 2018-10-21 13:21 jasoncool1 阅读(115) 评论(0) 推荐(0) 编辑
摘要: https://leetcode.com/problems/best-time-to-buy-and-sell-stock-with-transaction-fee/discuss/108870/Most-consistent-ways-of-dealing-with-the-series-of-s 阅读全文
posted @ 2018-10-21 09:53 jasoncool1 阅读(108) 评论(0) 推荐(0) 编辑
摘要: Fancyhttps://leetcode.com/problems/task-scheduler/discuss/104496/concise-Java-Solution-O(N)-time-O(26)-space 阅读全文
posted @ 2018-10-20 14:29 jasoncool1 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 东西都放进去 然后取出来就好了 阅读全文
posted @ 2018-10-20 12:44 jasoncool1 阅读(118) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 22 下一页