摘要: the definition of complete binary tree is: all the leaf nodes shou... 阅读全文
posted @ 2020-11-15 04:20 EvanMeetTheWorld 阅读(22) 评论(0) 推荐(0)
摘要: Find the sum of all left leaves in a given binary tree think about... 阅读全文
posted @ 2020-11-15 02:52 EvanMeetTheWorld 阅读(6) 评论(0) 推荐(0)
摘要: 平衡树的定义: 任意节点的左右子节点的高度差不超过1. 说到左右子树 就想到递归。 我们要check所有的节点是不是符合这个要求。 ... 阅读全文
posted @ 2020-11-15 01:31 EvanMeetTheWorld 阅读(22) 评论(0) 推荐(0)