摘要:
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
阅读(124)
推荐(0)
摘要:
For streaming processing, we could use number to set as recorder of last state. Normal recursion:
阅读全文
posted @ 2017-08-22 13:22
keepshuatishuati
阅读(146)
推荐(0)
摘要:
This answer is so awesome!!
阅读全文
posted @ 2017-08-21 15:00
keepshuatishuati
阅读(76)
推荐(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
阅读(85)
推荐(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
阅读(93)
推荐(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
阅读(92)
推荐(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
阅读(117)
推荐(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
阅读(106)
推荐(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
阅读(98)
推荐(0)
摘要:
Recursive method: DP:
阅读全文
posted @ 2017-08-10 12:55
keepshuatishuati
阅读(105)
推荐(0)