- 引言
- 预备知识
- 线性结构
- 树形结构
- 堆
- 图结构
- 字符算法
- 暴力匹配
- Horspool
- KMP
- BM
- Karp-Rabin
- 排序算法
- 数学
- 动态规划
- 贪心算法
- 分治法
- 减治法
- 其他算法
- Tag
- Conclusion
- C++ Trick
- Leetcode
- 1. Two Sum
- 2. Add Two Number
- 3. Longest Substring Without Repeating Characters
- 4. Median of Two Sorted Arrays
- 5. Longest Palindromic Substring
- 6. ZigZag Conversion
- 7. Reverse Integer
- 8. String to Integer (atoi)
- 9. Palindrome Number
- 10. Regular Expression Matching
- 12. Integer to Roman
- 13. Roman to Integer
- 19. Remove Nth Node From End of List
- 21. Merge Two Sorted Lists
- 23. Merge k Sorted Lists
- 25. Reverse Nodes in k-Group
- 26. Remove Duplicates from Sorted Array
- 27. Remove Element
- 34. Find First and Last Position of Element in Sorted Array
- 35. Search Insert Position
- 46. Permutations
- 48. Rotate Image
- 51. N-Queens
- 53. Maximum Subarray
- 65. Valid Number
- 69. Sqrt(x)
- 76. Minimum Window Substring
- 83. Remove Duplicates from Sorted List
- 92. Reverse Linked List II
- 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
- 114. Flatten Binary Tree to Linked List
- 116. Populating Next Right Pointers in Each Node
- 127. Word Ladder
- 130. Surrounded Regions
- 136. Single Number
- 141. Linked List Cycle
- 142. Linked List Cycle II
- 144. Binary Tree Preorder Traversal
- 151. Reverse Words in a String
- 152. Maximum Product Subarray
- 160. Intersection of Two Linked Lists
- 167. Two Sum II - Input Array Is Sorted
- 187. Repeated DNA Sequences
- 191. Number of 1 Bits
- 198. House Robber
- 206. Reverse Linked List
- 208. Implement Trie (Prefix Tree)
- 213. House Robber II
- 217. Contains Duplicate
- 219. Contains Duplicate II
- 220. Contains Duplicate III
- 226. Invert Binary Tree
- 230. Kth Smallest Element in a BST
- 231. Power of Two
- 234. Palindrome Linked List
- 268. Missing Number
- 283. Move Zeroes
- 292. Nim Game
- 293. Flip Game II
- 297. Serialize and Deserialize Binary Tree
- 300. Longest Increasing Subsequence
- 303. Range Sum Query - Immutable
- 304. Range Sum Query 2D - Immutable
- 315. Count of Smaller Numbers After Self
- 316. Remove Duplicate Letters
- 323. Number of Connected Components in an Undirected Graph
- 344. Reverse String
- 345. Reverse Vowels of a String
- 354. Russian Doll Envelopes
- 380. Insert Delete GetRandom O(1)
- 388. Longest Absolute File Path
- 393. UTF-8 Validation
- 417. Pacific Atlantic Water Flow
- 429. N-ary Tree Level Order Traversal
- 438. Find All Anagrams in a String
- 462. Minimum Moves to Equal Array Elements II
- 464. Can I Win
- 528. Random Pick with Weight
- 543. Diameter of Binary Tree
- 560. Subarray Sum Equals K
- 567. Permutation in String
- 645. Set Mismatch
- 648. Replace Words
- 654. Maximum Binary Tree
- 668. Kth Smallest Number in Multiplication Table
- 673. Number of Longest Increasing Subsequence
- 677. Map Sum Pairs
- 704. Binary Search
- 870. Advantage Shuffle
- 876. Middle of the Linked List
- 889. Construct Binary Tree from Preorder and Postorder Traversal
- 912. Sort an Array
- 918. Maximum Sum Circular Subarray
- 934. Shortest Bridge
- 953. Verifying an Alien Dictionary
- 961. N-Repeated Element in Size 2N Array
- 993. Cousins in Binary Tree
- 1021. Remove Outermost Parentheses
- 1094. Car Pooling
- 1109. Corporate Flight Bookings
- 1297. Maximum Number of Occurrences of a Substring
- 1592. Rearrange Spaces Between Words
- 1908. Game of Nim
- 剑指 Offer
This repository has been archived by the owner on May 22, 2024. It is now read-only.