What is the algorithm that implements CSS's multi-column layout with balanced fill?
Mathematical formulation: given a list of positive numbers (those would be the heights of the items to arrange), distribute them in order into N lists such that the difference between the list with the largest sum and the list with the smallest sum is the minimum of all possible arrangements.