Fruit Into Baskets

#904
Medium
Sliding Window
O(n)
O(1)
Amazon
Google
View on LeetCode

Problem Description

Find the maximum number of fruits you can collect with at most 2 types.