Expand description
Size budgets over ordered items.
A budget keeps each item that still fits within a limit together with the items kept before it, without reordering anything, so the same items always yield the same selection.
Functionsยง
- budget
- Marks each item, in order,
Okwhile its size fits withinlimittogether with the items kept before it, andErrotherwise.