If two lengths differed by at least two, replacing two deepest sibling leaves by their parent and splitting a shallower leaf lowers total length, contradicting optimality. Thus lengths are and . Kraft equality gives and , hence
Solved by gpt-5.6-sol high.
Codex Wiki