LintCode 1311: Lowest Common Ancestor of a Binary Search Tree (BST两节点最小公共祖先,经典题)
LowestCommonAncestorofaBinarySearchTreeGivenabinarysearchtree(BST),findthelowestcommonancestor(LCA)oftwogivennodesintheBST.AccordingtothedefinitionofLCAonWikipedia:“Thelowestcommonancestorisdefinedbet