摘要:
//注意,1,要判断null;2,要注意ArrayList直接复制会被一起改变。要通过new的方式来操作。public class Solution { public static void main(String[] args){ TreeNode root = new Tre... 阅读全文
posted @ 2015-12-28 11:53
仔细思考一切
阅读(193)
评论(0)
推荐(0)
摘要:
import java.util.*; public class LCA { public static int getLCA(int a, int b){ if(a b){ a = a/2; ... 阅读全文
posted @ 2015-12-28 09:17
仔细思考一切
阅读(169)
评论(0)
推荐(0)

浙公网安备 33010602011771号