LeetCode Daily Challenge-3477. Fruits Into Baskets II(Easy, O(n²))
Problem Statement
You are given two arrays fruits and baskets of equal length n. Place fruits into baskets following these rules:
Each fruit type must be placed in the leftmost available basket with sufficient capacity
Each basket holds only one typ...
huanganni.hashnode.dev4 min read