LeetCode

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

307. Range Sum Query - Mutable

307. Range Sum Query - Mutable class BIT: def __init_

224. Basic Calculator

224. Basic Calculator {% hint style="info" %} 先做 227.

18. 4Sum

18. 4 Sum class Solution: def twoSum(self, nums: List[

2. Add Two Numbers

2. Add Two Numbers 這一題雖然不是加一,不過很類似,所以我放在一起。 # Definition for singly-linked

1485. Clone Binary Tree With Random Pointer

1485. Clone Binary Tree With Random Pointer 概念和 138. Copy

42. Trapping Rain Water

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