← 返回 google 的题目列表Find k subsets with sum of weights in decreasing order
类型:online_judge
Given distinct objects with non-negative weights, return k subsets with the sum of weights in decreasing order.
Example
Input
weights = [3,1,4,2], k = 3
Output
[7, 6, 6]