1196. How Many Apples Can You Put into the Basket
You have some apples and a basket that can carry up to
5000
units of weight.Given an integer array
weight
whereweight[i]
is the weight of theith
apple, return the maximum number of apples you can put in the basket.
1 | class Solution { |