Array
3477. Fruits Into Baskets II
Given arrays fruits and baskets of the same length. Each fruit, in order, goes into the leftmost basket with capacity ≥ its size (that basket becomes occupied). Find the number of unplaced fruits.
Loading…
Given arrays fruits and baskets of the same length. Each fruit, in order, goes into the leftmost basket with capacity ≥ its size (that basket becomes occupied). Find the number of unplaced fruits.
Loading…