【LeetCode】解題報告
這篇文章會記錄所有 LeetCode 刷題系列文章。
Top Interview Questions
Array & Strings
Easy
26. Remove Duplicates from Sorted Array
122. Best Time to Buy and Sell Stock II
350. Intersection of Two Arrays II
387. First Unique Character in a String
Medium
3. Longest Substring Without Repeating Characters
5. Longest Palindromic Substring
128. Longest Consecutive Sequence
238. Product of Array Except Self
287. Find the Duplicate Number
334. Increasing Triplet Subsequence
340. Longest Substring with At Most K Distinct Characters
Hard
Linked List
Easy
160. Intersection of Two Linked Lists
237. Delete Node in a Linked List
Medium
19. Remove Nth Node From End of List
138. Copy List with Random Pointer
Hard
Trees & Graphs
Easy
94. Binary Tree Inorder Traversal
104. Maximum Depth of Binary Tree
108. Convert Sorted Array to Binary Search Tree
Medium
98. Validate Binary Search Tree
102. Binary Tree Level Order Traversal
103. Binary Tree Zigzag Level Order Traversal
116. Populating Next Right Pointers in Each Node
230. Kth Smallest Element in a BST
236. Lowest Common Ancestor of a Binary Tree
Hard
124. Binary Tree Maximum Path Sum
329. Longest Increasing Path in a Matrix
Backtracking
Medium
17. Letter Combinations of a Phone Number
Hard
10. Regular Expression Matching
301. Remove Invalid Parentheses
Sorting and Searching
Easy
Medium
33. Search in Rotated Sorted Array
34. Find First and Last Position of Element in Sorted Array
215. Kth Largest Element in an Array
378. Kth Smallest Element in a Sorted Matrix
Hard
Dynamic Programming
Easy
121. Best Time to Buy and Sell Stock
Medium
300. Longest Increasing Subsequence
Design
Medium
Math
Easy
171. Excel Sheet Column Number
172. Factorial Trailing Zeroes
Medium
Others
Easy
Medium
150. Evaluate Reverse Polish Notation
Problem Lists
363. Max Sum of Rectangle No Larger Than K
416. Partition Equal Subset Sum
973. K Closest Points to Origin
990. Satisfiability of Equality Equations
1074. Number of Submatrices That Sum to Target
1940. Longest Common Subsequence Between Sorted Arrays
1942. The Number of the Smallest Unoccupied Chair
2131. Longest Palindrome by Concatenating Two Letter Words