Available question text
Given an array apples where apples[i] is the number of apples on the i-th tree and each apple weighs 1 gram with a fixed basket capacity of 5000 grams, return the maximum number of apples you can put in the basket (i.e., min(total apples, 5000)).
Related questions
Continue with questions that share topics or the same question type.
- Build Array Where You Can Find The Maximum Exactly K Comparisons
Coding
- Can You Eat Your Favorite Candy on Your Favorite Day
Coding
- Check if Grid can be Cut into Sections
Coding
- Coding test: Given a simple mockup implement that UI. Some CSS is already provided and an API to fetch the data also exists. The recruiter prep doc talked about structuring the code well, making sure all functions work, write CSS and write tests. There is no way you can do it all in 1 hour, so it's probably best to ask the interviewer what they expect
Coding
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 1196. How Many Apples Can You Put into the Basket
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source