摘要: 235. 二叉搜索树的最近公共祖先 因为是搜索二叉树,所以只要值在q和p之间,那么就是lowest common ancestor # Definition for a binary tree node. # class TreeNode: # def __init__(self, x): # se 阅读全文
posted @ 2024-04-10 13:52 MiraMira 阅读(14) 评论(0) 推荐(0)