Preparing your experience...
Loading scripts and resources
Preparing your experience...
Loading scripts and resources
P1: 'TreeNode class' → class TreeNode: def __init__(self, val): self.val = val; self.___ = None; self.___ = None [left, right]. P2: 'Count all nodes' → def count(node): if node is ___: return 0; return 1 + count(node.left) + count(node.___) [None, right]. P3: 'Find tree height' → def height(node): i
20
Likes
0
Remixes
0
Comments