424. Longest Repeating Character Replacement 424. Longest Repeating Character Replacement class Solution: def characterReplacement(self,
11. Container With Most Water 11. Container With Most Water 解題的核心想法是有一句俗諺:水桶的最大容量決定於最矮的一邊。 題目給出的正是水桶高度,只是俗諺中的水桶,底部的面積都一樣,
26. Remove Duplicates from Sorted Array 26. Remove Duplicates from Sorted Array 題目的標題寫的並不是很清楚,這個題目其實是要把 雙指針問題 class
992. Subarrays with K Different Integers 992. Subarrays with K Different Integers 先見算出「最多」 k 個不同的數字的組合,
159. Longest Substring with At Most Two Distinct Characters 159. Longest Substring with At Most Two Distinct Characters class