This theory is part of Premium
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricingPick joins between growing ranges of leaf values so the total multiplied cost is smallest.
What this asks
Build the cheapest tree over a range of leaf values.
Work intervals over the leaf positions: a join costs the largest value on each side multiplied, and smaller ranges answer first.
The full write-up (worked counting examples, the trap list and the interview playbook) unlocks with a Premium plan, along with every Pro visualizer.
See pricing