Available question text
Given arrays fruits and baskets of equal length, simulate placing each fruit type in order into the leftmost unused basket with capacity >= the fruit quantity (each basket holds at most one type) and return how many fruit types cannot be placed. The core challenge is a left-to-right greedy "first-fit" matching that counts unmatched items.
Related questions
Continue with questions that share topics or the same question type.
- Fruits Into Baskets III
Coding
- Fruit Into Baskets
Coding · Array · Hash Table · Sliding Window
- Apple Redistribution into Boxes
Coding
- Check if Grid can be Cut into Sections
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
Tala
Leetcode 3477. Fruits Into Baskets II
Reported Mar 1, 2026 · 1 source report
MID_LEVEL
Source snapshot: Nov 12, 2026
View source