How Many Apples Can You Put into the Basket
An Easy coding interview problem in the Greedy pattern.
Likely pattern
Commit to the locally best choice when it provably stays optimal.
Recognition cue: A single pass where the best local move never needs to be undone.
- Learn first
- Do not confuse it with
Topics
- Array
- Greedy
- Sorting
Practise Greedy next
- 1Easy
- 2Easy
- 3Easy
- 4Easy
- 5Easy
- 6Easy
- 7Easy
- 8Easy