Loading page…
A directory's org chart raises four questions: how deep, is it balanced, which two people are furthest apart, and does a path add up to a budget. The lecture shows one method for all four: combine what the two subtrees return, or hand a value down. It traces height, a balance check that stops early, the diameter with its best through and best upward numbers, a path with a total and every such path, then why recursion fails on a long chain and the loops that replace it.
You are building the admin page of a company directory.