Sliding Window

904. Fruit Into Baskets

904. Fruit Into Baskets class Solution: def totalFruit(self, fruits:

1004. Max Consecutive Ones III

1004. Max Consecutive Ones III 這個題目是基於題目 485. Max Consecutive Ones

862. Shortest Subarray with Sum at Least K

862. Shortest Subarray with Sum at Least K 這個題目其實很近似於雙指針的問題,我在看完題目後的第一個想法是,