Classic

163. Missing Ranges

163. Missing Ranges 雖然這一題 LeetCode 是標記簡單,但是細節上要想清楚我覺得難度應該有接近中等的等級,會把這一題我放在時間區間問題,是因為概念很類似 759.

253. Meeting Rooms II

253. Meeting Rooms II 這題我們要算的是,時間有重疊沒有關係,但是告訴我們至少需要幾間會議室,我們才能安排好所有的會議(面試)。 往下閱讀之前,

772. Basic Calculator III

772. Basic Calculator III 前面兩題解完,此題題目有變化,答案無變化 class Solution: def

755. Pour Water

755. Pour Water class Solution: def pourWater(self, heights: List[

67. Add Binary

67. Add Binary class Solution: def addBinary(self, a: str,

42. Trapping Rain Water

42. Trapping Rain Water 要寫這一題之前,要先了解 11. Container With Most

445. Add Two Numbers II

445. Add Two Numbers II # Definition for singly-linked list. # class

167. Two Sum II - Input array is sorted

167. Two Sum II - Input array is sorted 如果已經排序好了,

680. Valid Palindrome II

680. Valid Palindrome II 這一題是 125. Valid Palindrome 的變形,考的是如果說最多可以修改一個字元,

866. Prime Palindrome

866. Prime Palindrome 9. Palindrome Number 和 204. Count Primes