Time O(h). Space O(h).
Tag Archives: Binary Tree
Minimum Depth of Binary Tree – Python 3 (Week 12 – 20)
Time O(d). Space O(d).
Find Leaves of Binary Tree – Python 3 (Week 12 – 18)
Time O(n). Space O(n).
Binary Tree Upside Down – Python 3 (Week 12 – 16)
Time O(h). Space O(h).