Problem 236 · Medium
Post-order DFS: the first node where both targets are found in separate subtrees is the LCA.
Open the interactive visualisation