grind 75
參考 Grind 75 questions 建立
Week 1
- 1. Two Sum (陣列)
- 20. Valid Parentheses (堆疊)
- 21. Merge Two Sorted Lists (鏈結串列)
- 121. Best Time to Buy and Sell Stock (陣列)
- 125. Valid Palindrome (字串)
- 226. Invert Binary Tree (二元樹)
- 242. Valid Anagram (字串)
- 704. Binary Search (二分搜尋)
733. Flood Fill
(圖)235. Lowest Common Ancestor of a Binary Search Tree
(二元搜尋樹)- 110. Balanced Binary Tree (二元樹)
- 141. Linked List Cycle (鏈結串列)
- 232. Implement Queue using Stacks (堆疊)
Week 2
- 278. First Bad Version (二分搜尋)
- 383. Ransom Note (Hash Table)
- 70. Climbing Stairs (動態規劃)
409. Longest Palindrome
(字串)- 206. Reverse Linked List (鏈結串列)
- 169. Majority Element (陣列)
- 67. Add Binary (二進位)
543. Diameter of Binary Tree
(二元樹)- 876. Middle of the Linked List (鏈結串列)
- 104. Maximum Depth of Binary Tree (二元樹)
- 217. Contains Duplicate (陣列)
- 53. Maximum Subarray (動態規劃)
Week 3
57. Insert Interval
542. 01 Matrix
973. K Closest Points to Origin
3. Longest Substring Without Repeating Characters
15. 3Sum
102. Binary Tree Level Order Traversal
133. Clone Graph
150. Evaluate Reverse Polish Notation
Week 4
207. Course Schedule
208. Implement Trie (Prefix Tree)
322. Coin Change
238. Product of Array Except Self
155. Min Stack
98. Validate Binary Search Tree
200. Number of Islands
994. Rotting Oranges
Week 5
33. Search in Rotated Sorted Array
39. Combination Sum
46. Permutations
56. Merge Intervals
236. Lowest Common Ancestor of a Binary Tree
981. Time Based Key-Value Store
721. Accounts Merge
75. Sort Colors
Week 6
139. Word Break
416. Partition Equal Subset Sum
8. String to Integer (atoi)
54. Spiral Matrix
78. Subsets
199. Binary Tree Right Side View
5. Longest Palindromic Substring
62. Unique Paths
105. Construct Binary Tree from Preorder and Inorder Traversal
Week 7
11. Container With Most Water
17. Letter Combinations of a Phone Number
79. Word Search
438. Find All Anagrams in a String
310. Minimum Height Trees
621. Task Scheduler
146. LRU Cache
Week 8
230. Kth Smallest Element in a BST
76. Minimum Window Substring
297. Serialize and Deserialize Binary Tree
42. Trapping Rain Water
295. Find Median from Data Stream
127. Word Ladder
224. Basic Calculator
1235. Maximum Profit in Job Scheduling
23. Merge k Sorted Lists
84. Largest Rectangle in Histogram