83. Remove Duplicates from Sorted List 83. Remove Duplicates from Sorted List # Definition for singly-linked list.
3. Longest Substring Without Repeating Characters 3. Longest Substring Without Repeating Characters 這一題其實是可以透過暴力解法想辦法算出來的,那就是窮舉出所有的子字串,並且檢查每一個子字串有沒有重複的字元。時間複雜度約為
992. Subarrays with K Different Integers 992. Subarrays with K Different Integers 先見算出「最多」 k 個不同的數字的組合,
26. Remove Duplicates from Sorted Array 26. Remove Duplicates from Sorted Array 雙指針問題 class Solution: def
11. Container With Most Water 11. Container With Most Water 解題的核心想法是有一句俗諺:水桶的最大容量決定於最矮的一邊。 題目給出的正是水桶高度,只是俗諺中的水桶,底部的面積都一樣,
424. Longest Repeating Character Replacement 424. Longest Repeating Character Replacement class Solution: def characterReplacement(self,