摘要:
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 阅读全文
摘要:
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 ... 阅读全文
摘要:
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 阅读全文