Problem 3066 · Medium
Repeatedly combine the two smallest numbers in a min heap until every number reaches the threshold.
Open the interactive visualisation