Leetcode 1710. Maximum Units on a Truck
Question Link : https://leetcode.com/problems/maximum-units-on-a-truck/
Difficulty: Easy
Question
You are assigned to put some amount of boxes onto one truck. You are given a 2D array boxTypes, where boxTypes[i] = [numberOfBoxesi, numberOfUnitsPerBoxi]:
numberOfBoxesi is the number of boxes of type i. numberOfUnitsPerBoxi is the number of units in …
Continue reading