1196. How Many Apples Can You Put into the Basket
https://leetcode.com/problems/how-many-apples-can-you-put-into-the-basket
Description
You have some apples and a basket that can carry up to 5000
units of weight.
Given an integer array weight
where weight[i]
is the weight of the ith
apple, return the maximum number of apples you can put in the basket.
Example 1:
Example 2:
Constraints:
1 <= weight.length <= 103
1 <= weight[i] <= 103
ac
Last updated