摘要: 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) 编辑