Least You Need to Know: Tree Height, Balance, and Diameter Intuition
سبق کھولیں
Bottom-up tree questions ask each subtree to return a small summary such as its height, whether it is balanced, or the best path seen so far. The key interview move is to decide what summary the parent needs from each child.