leetcode solutions
- 5. Longest Palindromic Substring (Manacher's Algorithm
- 22. Generate Parentheses (递归
- 36. Valid Sudoku
- 166. Fraction to Recurring Decimal
- 202. Happy Number
- 207. Course Schedule(拓扑排序
- 210. Course Schedule II
- 289. Game of Life(康威生命游戏
- 292. Nim Game
- 299. Bulls and Cows(Bulls and Cows
- 5. Longest Palindromic Substring
- 9. Palindrome Number
- 234. Palindrome Linked List
- 409. Longest Palindrome
- 75. Sort Colors
- 406. Queue Reconstruction by Height
- 524. Longest Word in Dictionary through Deleting
- 853. Car Fleet
- 922. Sort Array By Parity II
- 976. Largest Perimeter Triangle
- 1054. Distant Barcodes
- 506. Relative Ranks
- 1337. The K Weakest Rows in a Matrix
- 324. Wiggle Sort II
- 347. Top K Frequent Elements
- 17. Letter Combinations of a Phone Number
- 22. Generate Parentheses
- 39. Combination Sum
- 40. Combination Sum II
- 216. Combination Sum III
- 77. Combinations
- 78. Subsets
- 90. Subsets II
- 79. Word Search
- 93. Restore IP Addresses
- 131. Palindrome Partitioning
- 133. Clone Graph
- 429. N-ary Tree Level Order Traversal
- 437. Path Sum III
- 417. Pacific Atlantic Water Flow
- 662. Maximum Width of Binary Tree
- 53. Maximum Subarray
- 62. Unique Paths
- 63. Unique Paths II
- 64. Minimum Path Sum
- 91. Decode Ways
- 120. Triangle
- 152. Maximum Product Subarray
- 198. House Robber
- 213. House Robber II
- 221. Maximal Square
- 300. Longest Increasing Subsequence
- 343. Integer Break
- 322. Coin Change
- 464. Can I Win
- 467. Unique Substrings in Wraparound String
- 174. Dungeon Game
- 1162. As Far from Land as Possible
- 123. Best Time to Buy and Sell Stock III
- 11. Container With Most Water
- 55. Jump Game
- 45. Jump Game II
- 121. Best Time to Buy and Sell Stock
- 122. Best Time to Buy and Sell Stock II
- 33. Search in Rotated Sorted Array
- 34. Search for a Range
- 35. Search Insert Position
- 74. Search a 2D Matrix
- 240. Search a 2D Matrix II
- 383. Ransom Note
- 50. Pow(x, n)
- 69. Sqrt(x)
- 81. Search in Rotated Sorted Array II
- 153. Find Minimum in Rotated Sorted Array
- 162. Find Peak Element
- 241. Different Ways to Add Parentheses
- 275. H-Index II
- 278. First Bad Version
- 744. Find Smallest Letter Greater Than Target
- 378. Kth Smallest Element in a Sorted Matrix
- 94. Binary Tree Inorder Traversal
- 95. Unique Binary Search Trees II
- 96. Unique Binary Search Trees
- 98. Validate Binary Search Tree
- 100. Same Tree
- 101. Symmetric Tree
- 102. Binary Tree Level Order Traversal
- 103. Binary Tree Zigzag Level Order Traversal
- 104. Maximum Depth of Binary Tree
- 105. Construct Binary Tree from Preorder and Inorder Traversal
- 106. Construct Binary Tree from Inorder and Postorder Traversal
- 107. Binary Tree Level Order Traversal II
- 108. Convert Sorted Array to Binary Search Tree
- 109. Convert Sorted List to Binary Search Tree
- 110. Balanced Binary Tree
- 111. Minimum Depth of Binary Tree
- 112. Path Sum
- 113. Path Sum II
- 114. Flatten Binary Tree to Linked List
- 116. Populating Next Right Pointers in Each Node
- 117. Populating Next Right Pointers in Each Node II
- 129. Sum Root to Leaf Numbers
- 144. Binary Tree Preorder Traversal
- 199. Binary Tree Right Side View
- 222. Count Complete Tree Nodes
- 230. Kth Smallest Element in a BST
- 235. Lowest Common Ancestor of a Binary Search Tree
- 236. Lowest Common Ancestor of a Binary Tree
- 257. Binary Tree Paths
- 404. Sum of Left Leaves
- 6. ZigZag Conversion
- 8. String to Integer (atoi)
- 13. Roman to Integer
- 14. Longest Common Prefix
- 28. Implement strStr()
- 38. Count and Say
- 49. Group Anagrams
- 58. Length of Last Word
- 67. Add Binary
- 71. Simplify Path
- 125. Valid Palindrome
- 151. Reverse Words in a String
- 165. Compare Version Numbers
- 224. Basic Calculator
- 227. Basic Calculator II
- 242. Valid Anagram
- 290. Word Pattern
- 344. Reverse String
- 345. Reverse Vowels of a String
- 389. Find the Difference
- 392. Is Subsequence
- 434. Number of Segments in a String
- 482. License Key Formatting
- 316. Remove Duplicate Letters
- 394. Decode String
- 7. Reverse Integer
- 12. Integer to Roman
- 43. Multiply Strings
- 172. Factorial Trailing Zeroes
- 204. Count Primes
- 231. Power of Two
- 258. Add Digits
- 263. Ugly Number
- 264. Ugly Number II
- 268. Missing Number
- 274. H-Index
- 279. Perfect Squares(四平方和定理)
- 306. Additive Number
- 307. Range Sum Query - Mutable
- 309. Best Time to Buy and Sell Stock with Cooldown
- 326. Power of Three
- 342. Power of Four
- 367. Valid Perfect Square
- 633. Sum of Square Numbers
- 412. Fizz Buzz
- 434. Number of Segments in a String
- 441. Arranging Coins
- 447. Number of Boomerangs
- 448. Find All Numbers Disappeared in an Array
- 453. Minimum Moves to Equal Array Elements
- 485. Max Consecutive Ones
- 492. Construct the Rectangle
- 611. Valid Triangle Number
- 29. Divide Two Integers
- 89. Gray Code
- 136. Single Number
- 137. Single Number II
- 190. Reverse Bits
- 191. Number of 1 Bits
- 201. Bitwise AND of Numbers Range
- 397. Integer Replacement
- 15. 3Sum
- 16. 3Sum Closest
- 18. 4Sum
- 26. Remove Duplicates from Sorted Array
- 27. Remove Element
- 31. Next Permutation(全排列相关
- 46. Permutations
- 47. Permutations II
- 60. Permutation Sequence
- 48. Rotate Image
- 56. Merge Intervals
- 66. Plus One
- 70. Climbing Stairs
- 73. Set Matrix Zeroes
- 80. Remove Duplicates from Sorted Array II
- 88. Merge Sorted Array
- 118. Pascal's Triangle
- 119. Pascal's Triangle II
- 134. Gas Station
- 167. Two Sum II - Input array is sorted
- 169. Majority Element
- 189. Rotate Array
- 200. Number of Islands
- 217. Contains Duplicate
- 219. Contains Duplicate II
- 220. Contains Duplicate III
- 228. Summary Ranges
- 238. Product of Array Except Self
- 283. Move Zeroes
- 287. Find the Duplicate Number
- 303. Range Sum Query - Immutable
- 304. Range Sum Query 2D - Immutable
- 349. Intersection of Two Arrays
- 350. Intersection of Two Arrays II
- 443. String Compression
- 475. Heaters
- 455. Assign Cookies
- 495. Teemo Attacking
- 442. Find All Duplicates in an Array
- 457. Circular Array Loop
- 561. Array Partition I
- 605. Can Place Flowers
- 950. Reveal Cards In Increasing Order
- 2. Add Two Numbers
- 19. Remove Nth Node From End of List
- 24. Swap Nodes in Pairs
- 61. Rotate List
- 82. Remove Duplicates from Sorted List II
- 83. Remove Duplicates from Sorted List
- 86. Partition List
- 92. Reverse Linked List II
- 138. Copy List with Random Pointer
- 141. Linked List Cycle
- 142. Linked List Cycle II
- 143. Reorder List
- 147. Insertion Sort List
- 148. Sort List
- 160. Intersection of Two Linked Lists
- 203. Remove Linked List Elements
- 206. Reverse Linked List
- 237. Delete Node in a Linked List
- 328. Odd Even Linked List
- 25. Reverse Nodes in k-Group
- 54. Spiral Matrix
- 59. Spiral Matrix II
- 885. Spiral Matrix III
- 566. Reshape the Matrix
- 867. Transpose Matrix
- 766. Toeplitz Matrix
- 1380. Lucky Numbers in a Matrix
- 1351. Count Negative Numbers in a Sorted Matrix
- 840. Magic Squares In Grid
- 1030. Matrix Cells in Distance Order
- 542. 01 Matrix
- 1329. Sort the Matrix Diagonally
- 861. Score After Flipping Matrix