节点在两边,或者一个在中间,则当前节点是最近公共祖先 class Solution: def lowestCommonAncestor(self , root: TreeNode, p: int, q: int) -> int: if min(p,q) <= root.val <=&...