Available question text
Given box types with counts and units per box and a truck capacity in number of boxes, select up to truckSize boxes to maximize total units. Greedy approach: sort types by units-per-box descending and take as many boxes as possible from the highest-unit types until the truck is full.
Related questions
Continue with questions that share topics or the same question type.
- Absolute Difference Between Maximum and Minimum K Elements
Coding
- All the Pairs With the Maximum Number of Common Followers
Coding
- Average Salary Excluding the Minimum and Maximum Salary
Coding
- Binary Tree Maximum Path Sum
Coding · Binary Tree · Depth-First Search · DP on Trees
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1710. Maximum Units on a Truck
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source