Record my codes for resolving problems in leetcode.
ps: Bold font of the problems name means they are emphasis.
-
Backtracking
- 46. Permutations
- 17. Letter Combinations of a Phone Number
- 90. Subsets II
-
HashTable
- 454. 4Sum II (Python3)
-
List
- 92. Reverse Linked List II
- 21. Merge Two Sorted Lists
- 148. NEED DO
- 146. NEED DO
-
Tree
- 100. Same Tree
- 101. Symmetric Tree
- 145. Binary Tree Postorder Traversal
- 105. Construct Binary Tree from Preorder and Inorder Traversal
- 106. Construct Binary Tree from Inorder and Postorder Traversal
- 102. Binary Tree Level Order Traversal
- 653. Two Sum IV - Input is a BST
- 236. Lowest Common Ancestor of a Binary Tree
- 543. Diameter of Binary Tree
- 124. Binary Tree Maximum Path Sum(Method Simiar to above)
- 87. NEED DO
- 117. NEED DO
- 99. NEED DO
- 337. NEED DO
-
Array
- 34. Find First and Last Position of Element in Sorted Array (Python3)
- 42. Trapping Rain Water
-
Dynamic Programming
- 300. Longest Increasing Subsequence
- 72. NEED DO
- 121. Best Time to Buy and Sell Stock
- 198. House Robber
- 312. NEED DO
- 96. NEED DO
- 140. NEED DO
- 10. NEED DO
- 338. Counting Bits
-
String
- 14. Longest Common Prefix(Python3)
- 5. Longest Palindromic Substring(Python3)
