Lowest Common Ancestor of a Binary Tree
Confirmed in Netflix coding rounds. Netflix's content taxonomy is a tree (genre → subgenre → title) — LCA finds the most specific shared category between two titles. The postorder DFS pattern — bubbling non-null results up from children — is fundamental to dozens of tree problems.
Enable JavaScript for the full StreamPrep guide.