DSA Master
Home
Problems
123
Schedule
17 Patterns
Data Structures
PDF Guide
Back to Problems
Mark as Complete
Fruit Into Baskets
#904
Medium
Sliding Window
O(n)
O(1)
Amazon
Google
View on LeetCode
Description
Approach
Solution
Related
Problem Description
Find the maximum number of fruits you can collect with at most 2 types.