上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 36 下一页
摘要: 1. Multiplication length are sum of two lengths. 2. Multiplied value should be ADDED to the position not REPLACE since there could be other places mul 阅读全文
posted @ 2017-08-22 14:29 keepshuatishuati 阅读(121) 评论(0) 推荐(0) 编辑
摘要: For streaming processing, we could use number to set as recorder of last state. Normal recursion: 阅读全文
posted @ 2017-08-22 13:22 keepshuatishuati 阅读(140) 评论(0) 推荐(0) 编辑
摘要: This answer is so awesome!! 阅读全文
posted @ 2017-08-21 15:00 keepshuatishuati 阅读(72) 评论(0) 推荐(0) 编辑
摘要: 1 Remember : Always make integer validation at hasNext() since it is too late to validate it at next(). 阅读全文
posted @ 2017-08-21 13:53 keepshuatishuati 阅读(79) 评论(0) 推荐(0) 编辑
摘要: 1. Has to be sorted if originally not sorted. 2. When merge end point, it could be totally covered instead of intersect. 阅读全文
posted @ 2017-08-21 13:33 keepshuatishuati 阅读(87) 评论(0) 推荐(0) 编辑
摘要: class Solution { public boolean wordBreak(String s, List wordDict) { if (s == null || s.length() == 0) { return false; } boolean[] canBreak = new bool... 阅读全文
posted @ 2017-08-21 12:56 keepshuatishuati 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 1. When dot happened, each path should be scanned. 2. Each node will not contain any current char info. 阅读全文
posted @ 2017-08-21 12:44 keepshuatishuati 阅读(110) 评论(0) 推荐(0) 编辑
摘要: 1. If use StringBuilder as path recorder, do not just remove ONE since it could be multi-digits number. 2. Remember to construct string with "->" if i 阅读全文
posted @ 2017-08-20 11:15 keepshuatishuati 阅读(99) 评论(0) 推荐(0) 编辑
摘要: Note: Only skip same jk when the prev sums up to 0. Otherwise, there is no need to skip. 阅读全文
posted @ 2017-08-16 07:29 keepshuatishuati 阅读(92) 评论(0) 推荐(0) 编辑
摘要: Recursive method: DP: 阅读全文
posted @ 2017-08-10 12:55 keepshuatishuati 阅读(102) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 36 下一页