You must load boxes onto one truck. boxTypes[i] = [numberOfBoxes_i, numberOfUnitsPerBox_i]: there are numberOfBoxes_i boxes of type i, and each holds numberOfUnitsPerBox_i units. truckSize is the most boxes the truck can carry. Choose any boxes as long as their count does not exceed truckSize, and return the maximum total number of units the truck can carry.
You must load boxes onto one truck. boxTypes[i] = [numberOfBoxes_i, numberOfUnitsPerBox_i]: there are numberOfBoxes_i boxes of type i, and each holds numberOfUnitsPerBox_i units. truckSize is the most boxes the truck can carry. Choose any boxes as long as their count does not exceed truckSize, and return the maximum total number of units the truck can carry.