摘要: FOLLOW UPS: What if the input is coming streaming and you cannot even store the window? But you can store the checked String. I purposed this algorith 阅读全文
posted @ 2017-07-23 08:21 keepshuatishuati 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * Definition for a binary tree node. 3 * public class TreeNode { 4 * int val; 5 * TreeNode left; 6 * TreeNode right; 7 * TreeNode(int x) { val = x; } 8 * } 9 ... 阅读全文
posted @ 2017-07-23 07:44 keepshuatishuati 阅读(93) 评论(0) 推荐(0) 编辑
摘要: Tips : 1. Need to new array list since it is passed by reference. All the values will be cleaned up the original data is used. 2. For iteraive, no nee 阅读全文
posted @ 2017-07-23 07:22 keepshuatishuati 阅读(129) 评论(0) 推荐(0) 编辑