摘要:
public TreeNode binaryTree2List(TreeNode node) { if (node == null) return node; // Convert to DLL using bintree2listUtil() node = bintree2listUtil(node); ... 阅读全文
摘要:
Dis(n1, n2) = Dis(root, n1) + Dis(root, n2) - 2* Dis(root, lca) 阅读全文