LeetCode

151. Reverse Words in a String

151. Reverse Words in a String 題目是給定一個字串,這個字串的模式是,這個字串很像是一個句子,但是是由多個單字以及「

561. Array Partition

561. Array Partition class Solution: def arrayPairSum(self, nums: List[

210. Course Schedule II

210. Course Schedule II Check 207. Course Schedule

207. Course Schedule

207. Course Schedule 這一個題目的設計滿巧秒的,我個人覺得這個題目綜合了樹的遍歷(遞迴)、回溯法、動態規劃以及資料與圖形轉換的設計,外加上題目可以套用在各種現實生活問題中。所以整體而言

1676. Lowest Common Ancestor of a Binary Tree IV

1676. Lowest Common Ancestor of a Binary Tree IV Check

1650. Lowest Common Ancestor of a Binary Tree III

1650. Lowest Common Ancestor of a Binary Tree III Check

1644. Lowest Common Ancestor of a Binary Tree II

1644. Lowest Common Ancestor of a Binary Tree II Check

236. Lowest Common Ancestor of a Binary Tree

236. Lowest Common Ancestor of a Binary Tree Check 235.

235. Lowest Common Ancestor of a Binary Search Tree

* 235. Lowest Common Ancestor of a Binary Search Tree * 236.

18. 4 Sum

18. 4 Sum Check 15. 3 Sum