Maximize Sum of Device Ratings
Each device holds the same number of units and is rated by its smallest capacity, or 0 when empty. Each device may hand one unit to another device at most once; return the largest possible sum of ratings.
Each device holds the same number of units and is rated by its smallest capacity, or 0 when empty. Each device may hand one unit to another device at most once; return the largest possible sum of ratings.