2021年4月13日

平衡二叉树(AVL树)的最小距离

摘要: class Solution(object): def minDiffInBST(self, root): self.vals = [] self.inOrder(root) return min([self.vals[i + 1] - self.vals[i] for i in xrange(le 阅读全文

posted @ 2021-04-13 23:15 Woacer 阅读(58) 评论(0) 推荐(0)

导航