- 算法
- LeetCode、剑指offer、程序员面试金典等算法面试题
目录
- # 1. leetcode
- 1-1. LeetCode题解1-2. leetcode1 两数之和[简单难度]1-3. leetcode2 Add Two Numbers1-4. leetcode3 Longest Substring Without Repeating Characters1-5. leetcode4 寻找两个正序数组的中位数[困难难度]1-6. leetcode5 Longest Palindromic Substring1-7. leetcode6 ZigZag Conversion1-8. leetcode7 Reverse Integer1-9. leetcode8 String to Integer (atoi)1-10. leetcode9 Palindrome Number1-11. leetcode10 Regular Expression Matching1-12. leetcode11-盛最多水的容器[中等难度]1-13. leetcode12 Integer to Roman1-14. leetcode13 Roman to Integer1-15. leetcode14 Longest Common Prefix1-16. leetcode15 3Sum1-17. leetcode16 3Sum Closest1-18. leetcode17 Letter Combinations of a Phone Number1-19. leetcode18 4Sum1-20. leetcode19 Remove Nth Node From End of List1-21. leetcode20 Valid Parentheses1-22. leetcode21 Merge Two Sorted Lists1-23. leetcode22 Generate Parentheses1-24. leetcode23 Merge k Sorted Lists1-25. leetcode24 Swap Nodes in Pairs1-26. leetcode25 Reverse Nodes in k-Group1-27. leetcode26 Remove Duplicates from Sorted Array1-28. leetcode27 Remove Element1-29. leetcode28 Implement strStr()1-30. leetcode29 Divide Two Integers1-31. leetcode30 Substring with Concatenation of All Words1-32. leetcode31 Next Permutation1-33. leetcode32 Longest Valid Parentheses1-34. leetcode33 Search in Rotated Sorted Array1-35. leetcode34 Find First and Last Position of Element in Sorted Array1-36. leetcode35 Search Insert Position1-37. leetcode36 有效的数独[中等难度]1-38. leetcode37 Sudoku Solver1-39. leetcode38 外观数列(报数)【中等难度】1-40. leetcode39 Combination Sum1-41. leetcode40 Combination Sum II1-42. leetcode41 First Missing Positive-zh1-43. leetcode42 Trapping Rain Water-zh1-44. leetcode43 Multiply Strings-zh1-45. leetcode44 Wildcard Matching-zh1-46. leetcode45 Jump Game II-zh1-47. leetcode46 Permutations-zh1-48. leetcode47 Permutations II-zh1-49. leetcode48 Rotate Image-zh1-50. leetcode49 Group Anagrams-zh1-51. leetcode50 Pow(x, n)-zh1-52. leetcode51 N-Queens-zh1-53. leetcode52 N-Queens II-zh1-54. leetcode53 Maximum Subarray-zh1-55. leetcode54 Spiral Matrix-zh1-56. leetcode55 Jump Game-zh1-57. leetcode56 Merge Intervals-zh1-58. leetcode57 Insert Interval-zh1-59. leetcode58 Length of Last Word-zh1-60. leetcode59 Spiral Matrix II-zh1-61. leetcode60 Permutation Sequence-zh1-62. leetcode61 Rotate List-zh1-63. leetcode62 Unique Paths-zh1-64. leetcode63 Unique Paths II-zh1-65. leetcode64 Minimum Path Sum-zh1-66. leetcode65 Valid Number-zh1-67. leetcode66 Plus One-zh1-68. leetcode67 Add Binary-zh1-69. leetcode68 Text Justification-zh1-70. leetcode69 Sqrt(x)-zh1-71. leetcode70 Climbing Stairs-zh1-72. leetcode71 Simplify Path-zh1-73. leetcode72 Edit Distance-zh1-74. leetcode73 Set Matrix Zeroes-zh1-75. leetcode74 Search a 2D Matrix-zh1-76. leetcode75 Sort Colors-zh1-77. leetcode76 Minimum Window Substring-zh1-78. leetcode77 Combinations-zh1-79. leetcode78 Subsets-zh1-80. leetcode79 Word Search-zh1-81. leetcode80 Remove Duplicates from Sorted Array II-zh1-82. leetcode81 Search in Rotated Sorted Array II-zh1-83. leetcode82 Remove Duplicates from Sorted List II-zh1-84. leetcode83 Remove Duplicates from Sorted List-zh1-85. leetcode84 Largest Rectangle in Histogram-zh1-86. leetcode85 Maximal Rectangle-zh1-87. leetcode86 Partition List-zh1-88. leetcode87 Scramble String-zh1-89. leetcode88 Merge Sorted Array-zh1-90. leetcode89 Gray Code-zh1-91. leetcode90 Subsets II-zh1-92. leetcode91 Decode Ways-zh1-93. leetcode92 Reverse Linked List II-zh1-94. leetcode93 Restore IP Addresses-zh1-95. leetcode94 Binary Tree Inorder Traversal-zh1-96. leetcode95 Unique Binary Search Trees II-zh1-97. leetcode96 Unique Binary Search Trees-zh1-98. leetcode97 Interleaving String-zh1-99. leetcode98 Validate Binary Search Tree-zh1-100. leetcode99 Recover Binary Search Tree-zh1-101. leetcode100 Same Tree-zh1-102. leetcode101 Symmetric Tree-zh1-103. leetcode102 Binary Tree Level Order Traversal-zh1-104. leetcode103 Binary Tree Zigzag Level Order Traversal-zh1-105. leetcode104 Maximum Depth of Binary Tree-zh1-106. leetcode105 Construct Binary Tree from Preorder and Inorder Traversal-zh1-107. leetcode106 Construct Binary Tree from Inorder and Postorder Traversal-zh1-108. leetcode107 Binary Tree Level Order Traversal II-zh1-109. leetcode108 Convert Sorted Array to Binary Search Tree-zh1-110. leetcode109 Convert Sorted List to Binary Search Tree-zh1-111. leetcode110 Balanced Binary Tree-zh1-112. leetcode111 Minimum Depth of Binary Tree-zh1-113. leetcode112 Path Sum-zh1-114. leetcode113 Path Sum II-zh1-115. leetcode114 Flatten Binary Tree to Linked List-zh1-116. leetcode115 Distinct Subsequences-zh1-117. leetcode116 Populating Next Right Pointers in Each Node-zh1-118. leetcode117 Populating Next Right Pointers in Each Node II-zh1-119. leetcode118 Pascal's Triangle-zh1-120. leetcode119 Pascal's Triangle II-zh1-121. leetcode120 Triangle-zh1-122. leetcode121 Best Time to Buy and Sell Stock-zh1-123. leetcode122 Best Time to Buy and Sell Stock II-zh1-124. leetcode123 Best Time to Buy and Sell Stock III-zh1-125. leetcode124 Binary Tree Maximum Path Sum-zh1-126. leetcode125 Valid Palindrome-zh1-127. leetcode126 Word Ladder II-zh1-128. leetcode127 Word Ladder-zh1-129. leetcode128 Longest Consecutive Sequence-zh1-130. leetcode129 Sum Root to Leaf Numbers-zh1-131. leetcode130 Surrounded Regions-zh1-132. leetcode131 Palindrome Partitioning-zh1-133. leetcode132 Palindrome Partitioning II-zh1-134. leetcode133 Clone Graph-zh1-135. leetcode134 Gas Station-zh1-136. leetcode135 Candy-zh1-137. leetcode136 Single Number-zh1-138. leetcode137 Single Number II-zh1-139. leetcode138 Copy List with Random Pointer-zh1-140. leetcode139 Word Break-zh1-141. leetcode140 Word Break II-zh1-142. leetcode141 Linked List Cycle-zh1-143. leetcode142 Linked List Cycle II-zh1-144. leetcode143 Reorder List-zh1-145. leetcode144 Binary Tree Preorder Traversal-zh1-146. leetcode145 Binary Tree Postorder Traversal-zh1-147. leetcode146 Lru Cache-zh1-148. leetcode147 Insertion Sort List-zh1-149. leetcode148 Sort List-zh1-150. leetcode149 Max Points on a Line-zh1-151. leetcode150 Evaluate Reverse Polish Notation-zh1-152. leetcode151 Reverse Words in a String-zh1-153. leetcode152 Maximum Product Subarray-zh1-154. leetcode153 Find Minimum in Rotated Sorted Array-zh1-155. leetcode154 Find Minimum in Rotated Sorted Array II-zh1-156. leetcode155 Min Stack-zh1-157. leetcode156 Binary Tree Upside Down-zh1-158. leetcode157 Read N Characters Given Read4-zh1-159. leetcode158 Read N Characters Given Read4 II - Call multiple times-zh1-160. leetcode159 Longest Substring with At Most Two Distinct Characters-zh1-161. leetcode160 Intersection of Two Linked Lists-zh1-162. leetcode161 One Edit Distance-zh1-163. leetcode162 Find Peak Element-zh1-164. leetcode163 Missing Ranges-zh1-165. leetcode164 Maximum Gap-zh1-166. leetcode165 Compare Version Numbers-zh1-167. leetcode166 Fraction to Recurring Decimal-zh1-168. leetcode167 Two Sum II - Input array is sorted-zh1-169. leetcode168 Excel Sheet Column Title-zh1-170. leetcode169 Majority Element-zh1-171. leetcode170 Two Sum III - Data structure design-zh1-172. leetcode171 Excel Sheet Column Number-zh1-173. leetcode172 Factorial Trailing Zeroes-zh1-174. leetcode173 Binary Search Tree Iterator-zh1-175. leetcode174 Dungeon Game-zh1-176. leetcode175 Combine Two Tables-zh1-177. leetcode176 Second Highest Salary-zh1-178. leetcode177 Nth Highest Salary-zh1-179. leetcode178 Rank Scores-zh1-180. leetcode179 Largest Number-zh1-181. leetcode180 Consecutive Numbers-zh1-182. leetcode181 Employees Earning More Than Their Managers-zh1-183. leetcode182 Duplicate Emails-zh1-184. leetcode183 Customers Who Never Order-zh1-185. leetcode184 Department Highest Salary-zh1-186. leetcode185 Department Top Three Salaries-zh1-187. leetcode186 Reverse Words in a String II-zh1-188. leetcode187 Repeated DNA Sequences-zh1-189. leetcode188 Best Time to Buy and Sell Stock IV-zh1-190. leetcode189 Rotate Array-zh1-191. leetcode190 Reverse Bits-zh1-192. leetcode191 Number of 1 Bits-zh1-193. leetcode192 Word Frequency-zh1-194. leetcode193 Valid Phone Numbers-zh1-195. leetcode194 Transpose File-zh1-196. leetcode195 Tenth Line-zh1-197. leetcode196 Delete Duplicate Emails-zh1-198. leetcode197 Rising Temperature-zh1-199. leetcode198 House Robber-zh1-200. leetcode199 Binary Tree Right Side View-zh1-201. leetcode200 Number of Islands-zh1-202. leetcode201 Bitwise AND of Numbers Range-zh1-203. leetcode202 Happy Number-zh1-204. leetcode203 Remove Linked List Elements-zh1-205. leetcode204 Count Primes-zh1-206. leetcode205 Isomorphic Strings-zh1-207. leetcode206 Reverse Linked List-zh1-208. leetcode207 Course Schedule-zh1-209. leetcode208 Implement Trie (Prefix Tree)-zh1-210. leetcode209 Minimum Size Subarray Sum-zh1-211. leetcode210 Course Schedule II-zh1-212. leetcode211 Design Add and Search Words Data Structure-zh1-213. leetcode212 Word Search II-zh1-214. leetcode213 House Robber II-zh1-215. leetcode214 Shortest Palindrome-zh1-216. leetcode215 Kth Largest Element in an Array-zh1-217. leetcode216 Combination Sum III-zh1-218. leetcode217 Contains Duplicate-zh1-219. leetcode218 The Skyline Problem-zh1-220. leetcode219 Contains Duplicate II-zh1-221. leetcode220 Contains Duplicate III-zh1-222. leetcode221 Maximal Square-zh1-223. leetcode222 Count Complete Tree Nodes-zh1-224. leetcode223 Rectangle Area-zh1-225. leetcode224 Basic Calculator-zh1-226. leetcode225 Implement Stack using Queues-zh1-227. leetcode226 Invert Binary Tree-zh1-228. leetcode227 Basic Calculator II-zh1-229. leetcode228 Summary Ranges-zh1-230. leetcode229 Majority Element II-zh1-231. leetcode230 Kth Smallest Element in a BST-zh1-232. leetcode231 Power of Two-zh1-233. leetcode232 Implement Queue using Stacks-zh1-234. leetcode233 Number of Digit One-zh1-235. leetcode234 Palindrome Linked List-zh1-236. leetcode235 Lowest Common Ancestor of a Binary Search Tree-zh1-237. leetcode236 Lowest Common Ancestor of a Binary Tree-zh1-238. leetcode237 Delete Node in a Linked List-zh1-239. leetcode238 Product of Array Except Self-zh1-240. leetcode239 Sliding Window Maximum-zh1-241. leetcode240 Search a 2D Matrix II-zh1-242. leetcode241 Different Ways to Add Parentheses-zh1-243. leetcode242 Valid Anagram-zh1-244. leetcode243 Shortest Word Distance-zh1-245. leetcode244 Shortest Word Distance II-zh1-246. leetcode245 Shortest Word Distance III-zh1-247. leetcode246 Strobogrammatic Number-zh1-248. leetcode247 Strobogrammatic Number II-zh1-249. leetcode248 Strobogrammatic Number III-zh1-250. leetcode249 Group Shifted Strings-zh1-251. leetcode250 Count Univalue Subtrees-zh1-252. leetcode251 Flatten 2D Vector-zh1-253. leetcode252 Meeting Rooms-zh1-254. leetcode253 Meeting Rooms II-zh1-255. leetcode254 Factor Combinations-zh1-256. leetcode255 Verify Preorder Sequence in Binary Search Tree-zh1-257. leetcode256 Paint House-zh1-258. leetcode257 Binary Tree Paths-zh1-259. leetcode258 Add Digits-zh1-260. leetcode259 3Sum Smaller-zh1-261. leetcode260 Single Number III-zh
- # 2. leetcode-p2
- 2-1. leetcode261 Graph Valid Tree-zh2-2. leetcode262 Trips and Users-zh2-3. leetcode263 ugly-number-zh2-4. leetcode264 Ugly Number II-zh2-5. leetcode265 Paint House II-zh2-6. leetcode266 Palindrome Permutation-zh2-7. leetcode267 Palindrome Permutation II-zh2-8. leetcode268 Missing Number-zh2-9. leetcode269 Alien Dictionary-zh2-10. leetcode270 Closest Binary Search Tree Value-zh2-11. leetcode271 Encode and Decode Strings-zh2-12. leetcode272 Closest Binary Search Tree Value II-zh2-13. leetcode273 Integer to English Words-zh2-14. leetcode274 H-Index-zh2-15. leetcode275 H-Index II-zh2-16. leetcode276 Paint Fence-zh2-17. leetcode277 Find the Celebrity-zh2-18. leetcode278 First Bad Version-zh2-19. leetcode279 Perfect Squares-zh2-20. leetcode280 Wiggle Sort-zh2-21. leetcode281 Zigzag Iterator-zh2-22. leetcode282 Expression Add Operators-zh2-23. leetcode283 Move Zeroes-zh2-24. leetcode284 Peeking Iterator-zh2-25. leetcode285 Inorder Successor in BST-zh2-26. leetcode286 Walls and Gates-zh2-27. leetcode287 Find the Duplicate Number-zh2-28. leetcode288 Unique Word Abbreviation-zh2-29. leetcode289 Game of Life-zh2-30. leetcode290 Word Pattern-zh
上次更新: 2021/10/30, 12:58:38