LeetCode 题解

数组问题

  • LeetCode 283.Move Zeroes
  • LeetCode 27.Remove Element
  • LeetCode 26. Remove Duplicates from Sorted Array
  • LeetCode 80. Remove Duplicates from Sorted Array II
  • LeetCode 75. Sort Colors
  • LeetCode 88. Merge Sorted Array
  • LeetCode 215. Kth Largest Element in an Array
  • LeetCode 125. Valid Palindrome
  • LeetCode 344. Reverse String
  • LeetCode 345. Reverse Vowels of a String
  • LeetCode 11. Container With Most Water
  • LeetCode 42. Trapping Rain Water
  • LeetCode 209. Minimum Size Subarray Sum
  • LeetCode 3. Longest Substring Without Repeating Characters
  • LeetCode 438. Find All Anagrams in a String
  • LeetCode 76. Minimum Window Substring

查找表HashMap相关问题

  • LeetCode 350. Intersection of Two Arrays II
  • LeetCode 242. Valid Anagram
  • LeetCode 202. Happy Number
  • LeetCode 290. Word Pattern
  • LeetCode 205. Isomorphic Strings
  • LeetCode 451. Sort Characters By Frequency
  • LeetCode 15. 3Sum
  • LeetCode 18. 4Sum
  • LeetCode 16. 3Sum Closest
  • LeetCode 454. 4Sum II
  • LeetCode 49. Group Anagrams
  • LeetCode 447. Number of Boomerangs
  • LeetCode 217. Contains Duplicate
  • LeetCode 219. Contains Duplicate II
  • LeetCode 220. Contains Duplicate III

链表问题

  • LeetCode 206. Reverse Linked List
  • LeetCode 92. Reverse Linked List II
  • LeetCode 86. Partition List
  • LeetCode 328. Odd Even Linked List
  • LeetCode 2. Add Two Numbers
  • LeetCode 445. Add Two Numbers II
  • LeetCode 66. Plus One
  • LeetCode 203. Remove Linked List Elements
  • LeetCode 82. Remove Duplicates from Sorted List II
  • LeetCode 83. Remove Duplicates from Sorted List
  • LeetCode 21. Merge Two Sorted Lists
  • LeetCode 24. Swap Nodes in Pairs
  • LeetCode 25. Reverse Nodes in k-Group
  • LeetCode 147. Insertion Sort List
  • LeetCode 148. Sort List
  • LeetCode 19. Remove Nth Node From End of List
  • LeetCode 61. Rotate List
  • LeetCode 143. Reorder List
  • LeetCode 234. Palindrome Linked List

栈,队列,堆以及DFS,BFS

  • LeetCode 20. Valid Parentheses
  • LeetCode 150. Evaluate Reverse Polish Notation
  • LeetCode 71. Simplify Path
  • LeetCode 144. Binary Tree Preorder Traversal
  • LeetCode 94. Binary Tree Inorder Traversal
  • LeetCode 145. Binary Tree Postorder Traversal
  • LeetCode 341. Flatten Nested List Iterator
  • LeetCode 102. Binary Tree Level Order Traversal
  • LeetCode 107. Binary Tree Level Order Traversal II
  • LeetCode 103. Binary Tree Zigzag Level Order Traversal
  • LeetCode 199. Binary Tree Right Side View
  • LeetCode 279. Perfect Squares
  • LeetCode 127. Word Ladder
  • LeetCode 126. Word Ladder II
  • LeetCode 347. Top K Frequent Elements
  • LeetCode 23. Merge k Sorted Lists

二叉树及递归

  • LeetCode 104. Maximum Depth of Binary Tree
  • LeetCode 111. Minimum Depth of Binary Tree
  • LeetCode 226. Invert Binary Tree
  • LeetCode 100. Same Tree
  • LeetCode 101. Symmetric Tree
  • LeetCode 222. Count Complete Tree Nodes
  • LeetCode 110. Balanced Binary Tree
  • LeetCode 112. Path Sum
  • LeetCode 404. Sum of Left Leaves
  • LeetCode 257. Binary Tree Paths
  • LeetCode 113. Path Sum II
  • LeetCode 129. Sum Root to Leaf Numbers
  • LeetCode 437. Path Sum III
  • LeetCode 235. Lowest Common Ancestor of a Binary Search Tree
  • LeetCode 98. Validate Binary Search Tree
  • LeetCode 450. Delete Node in a BST
  • LeetCode 108. Convert Sorted Array to Binary Search Tree
  • LeetCode 230. Kth Smallest Element in a BST
  • LeetCode 236. Lowest Common Ancestor of a Binary Tree

递归DFS和回溯

  • LeetCode 17. Letter Combinations of a Phone Number
  • LeetCode 93. Restore IP Addresses
  • LeetCode 131. Palindrome Partitioning
  • LeetCode 132. Palindrome Partitioning II
  • LeetCode 46. Permutations
  • LeetCode 47. Permutations II
  • LeetCode 77. Combinations
  • LeetCode 39. Combination Sum
  • LeetCode 40. Combination Sum II
  • LeetCode 216. Combination Sum III
  • LeetCode 78. Subsets
  • LeetCode 90. Subsets II
  • LeetCode 401. Binary Watch
  • LeetCode 79. Word Search
  • LeetCode 200. Number of Islands
  • LeetCode 130. Surrounded Regions
  • LeetCode 417. Pacific Atlantic Water Flow
  • LeetCode 51. N-Queens
  • LeetCode 52. N-Queens II
  • LeetCode 36. Valid Sudoku
  • LeetCode 37. Sudoku Solver

动态规划

  • LeetCode 70. Climbing Stairs
  • LeetCode 120. Triangle
  • LeetCode 64. Minimum Path Sum
  • LeetCode 343. Integer Break
  • LeetCode 62. Unique Paths
  • LeetCode 91. Decode Ways
  • LeetCode 63. Unique Paths II
  • LeetCode 198. House Robber
  • LeetCode 213. House Robber II
  • LeetCode 337. House Robber III
  • LeetCode 121. Best Time to Buy and Sell Stock
  • LeetCode 122. Best Time to Buy and Sell Stock II
  • LeetCode 188. Best Time to Buy and Sell Stock IV
  • LeetCode 416. Partition Equal Subset Sum
  • LeetCode 322. Coin Change
  • LeetCode 518. Coin Change 2
  • LeetCode 377. Combination Sum IV
  • LeetCode 474. Ones and Zeroes
  • LeetCode 139. Word Break
  • LeetCode 140. Word Break II
  • LeetCode 494. Target Sum
  • LeetCode 300. Longest Increasing Subsequence(最长递增子序列)
  • LeetCode 376. Wiggle Subsequence

贪心算法

  • LeetCode 455. Assign Cookies
  • LeetCode 392. Is Subsequence
  • LeetCode 435. Non-overlapping Intervals

你可能感兴趣的:(LeetCode)