you have some apples, where arr[i] is the weight of the i-th apple. you also have a basket that can carry up to 5000 units of weight. goodtecher.com be a good techer and tech for good. www.goodtecher.com Category:programming and developer software Global Rank:2,797,459 visits:15.0K pages/Per:1.2 ADS