[LeetCode] 222. Count Complete Tree Nodes_Medium tag: Binary search
2021-08-18 08:57 Johnson_强生仔仔 阅读(21) 评论(0) 编辑 收藏 举报
Ideas: 1. T: O(n), S: O(lgn), depth of the tree # Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=No