Fundamentals/Fill The Truck
← PrevNext →
Given an array of [boxes, units] pairs and a truck capacity (max number of boxes), return the maximum total units that can be loaded by greedily picking the highest-units boxes first.