Fundamentals
/
Fill The Truck
⏸
00:00
↻
← Prev
Next →
▶
Question
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.
▶
Understand
▶
Approach
▶
My Code
▶
Reference Solution
Compare
6