- 数据结构思维中文版
- Leetcode C++ 题解
- 1. Two Sum
- 2. Add Two Numbers
- 3. Longest Substring Without Repeating Characters
- 004. 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
- 11. container with most water
- 12. Integer to Roman
- 14. Longest Common Prefix
- 15. 3sum
- 16. 3Sum Closest
- 17. Letter Combinations of a Phone Number
- 18. 4Sum
- 19. Remove Nth Node From End of List
- 20. Valid Parentheses
- 21. Merge Two Sorted Lists
- 22. Generate Parentheses
- 23. merge k sorted lists
- 24. Swap Nodes in Pairs
- 25.reverse nodes in k group
- 26.Remove Duplicates From Sorted Array
- 27.Remove Element
- 28.implement strstr
- 29.divide two integers
- 30.substring with concatenation of all words
- 31.Next Permutatio
- 32. Longest Valid Parentheses
- 033. Search in Rotated Sorted Array
- 34. Find First and Last Position of Element in Sorted Array
- ???????
- 36. Valid Sudoku
- 38. Count and Say
- 39. Combination Sum
- 40. Combination Sum II
- 041.First Missing Positive
- 42. Trapping Rain Water
- 43. Multiply Strings
- 44. Wildcard Matching
- 045. Jump Game II
- 46. Permutations
- 47. Permutations II
- 49. Group Anagrams
- 49. Group Anagrams
- 50. powx n
- 51. N-Queens
- 52. N-Queens II
- 053. Maximum Subarray
- 54. Spiral Matrix
- 55. Jump Game
- 56. Merge Intervals
- 57. Insert Interval
- 058. Length of Last Word
- 59. Spiral Matrix II
- 60. Permutation Sequence
- 61. Rotate List
- 62. Unique Paths
- 63. Unique Paths II
- 64. Minimum Path Sum
- 65. Valid Number
- 66. Plus One
- 68. Text Justification
- 69. Sqrt(x)
- 72. Edit Distance
- 75. Sort Colors
- 76. Minimum Window Substring
- 77. Combinations
- 78. Subsets
- 81. Search in Rotated Sorted Array II
- ???????
- 84. Largest Rectangle in Histogram
- 85. Maximal Rectangle
- 87. Scramble String
- 88.Merge Sorted Array
- 90. Subsets II
- 94. Binary Tree Inorder Traversal
- 96. Unique Binary Search Trees
- 97. Interleaving String
- 99. Recover Binary Search Tree
- 100. same tree
- 101. Symmetric Tree
- 102. Binary Tree 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
- 114. Flatten Binary Tree to Linked List
- 115.Distinct Subsequences
- 118. Pascal's Triangle
- 119. Pascal's Triangle II
- 120. Triangle
- 121. Best Time to Buy and Sell Stock
- 122. Best Time to Buy and Sell Stock II
- 123. Best Time to Buy and Sell Stock III
- 124. Binary Tree Maximum Path Sum
- 127. Word Ladder
- 128. Longest Consecutive Sequence
- 129. Sum Root to Leaf Numbers
- 131. Palindrome Paritionaing
- 136. Single Numbe
- 137.Single Number II
- ???????
- 142. linked list cycle II
- 144. Binary Tree Preorder Traversal
- 145. Binary Tree Postorder Traversal
- 147. Insertion Sort List
- 148.Sort list
- 151. Reverse Words in a String
- 153. Find Minimum in Rotated Sorted Array
- 154. Find Minimum in Rotated Sorted Array II
- 160 intersection_of_Two_Linked_Lists
- 164. Maximum Gap
- 166. Fraction to Recurring Decimal
- 167. Two Sum II - Input array is sorted
- 199. Binary Tree Right Side View
- 216. Combination Sum III
- 230. Kth Smallest Element in a BST
- 260. Single Number III
- 287. Find the Duplicate Number
- 326. Power_of_Three
- 328. Odd Even Linked List
- 329. Longest Increasing Path in a Matrix
- 338. Counting Bits
- 413. Arithmetic Slices
- 442. Find All Duplicates in an Array
- 513. Find Bottom Left Tree Value
- 515. Find Largest Value in Each Tree Row
- 540. Single Element in a Sorted Array
- 581. Shortest Unsorted Continuous Subarray
- 793. K Inverse Pairs Array
- 632. Smallest Range
- 654. Maximum Binary Tree
- 668. Kth Smallest Number in Multiplication Table
- 701. Insert into a Binary Search Tree
- 715. Range Module
- 793. Find K-th Smallest Pair Distance
- 739. Daily Temperatures
- 797. All Paths From Source to Target
- 814. Binary Tree Pruning
- 841. Keys and Rooms
- 877. Stone Game
- 945. Minimum Increment to Make Array Unique
- 946. Validate Stack Sequences
- 947. Most Stones Removed with Same Row or Column
- 948. Bag of Tokens
- 949. Largest Time for Given Digits
- 950. Reveal Cards In Increasing Order
- 951. Flip Equivalent Binary Trees
- 952. Largest Component Size by Common Factor
- Leetcode Java 题解
- 1. Two Sum
- 2. Add Two Numbers
- 3. Longest Substring Without Repeating Characters
- 4. Median of Two Sorted Arrays
- 5. Longest Palindromic Substring
- 6. ZigZag Conversion
- 7. Reverse Integer
- 23. Merge K Sorted Lists
- 141. Linked List Cycle
- 218. The Skyline Problem
- 238. Product of Array Except Self
- 342. Power of Four
- 403. Frog Jump
- 757. Set Intersection Size At Least Two
- 768. Max Chunks To Make Sorted II
- 780. Reaching Points
- 793. Preimage Size of Factorial Zeroes Function
- 827. Making A Large Island
- 828. Unique Letter String
- 834. Sum of Distances in Tree
- 843. Guess the Word
- 847. Shortest Path Visiting All Nodes
- 850. Rectangle Area II
- 854. K-Similar Strings
- 857. Minimum Cost to Hire K Workers
- 862. Shortest Subarray with Sum at Least K
- 864. Shortest Path to Get All Keys
- 871. Minimum Number of Refueling Stops
- 878. Nth Magical Number
- 879. Profitable Schemes
- 899. Reachable Nodes In Subdivided Graph
- 887. Super Egg Drop
- 891. Sum of Subsequence Widths
- 895. Maximum Frequency Stack
- 899. Orderly Queue
- 902. Numbers At Most N Given Digit Set
- 903. Valid Permutations for DI Sequence
- 906. Super Palindromes
- 913. Cat and Mouse
- 920. Number of Music Playlists
- Leetcode JavaScript 题解
- 0001 Two Sum
- 0002 Add Two Numbers
- 0003 Longest Substring without Repeating Characters
- 0007 Reverse Integer
- 0008 String to Integer
- 0009 Palindrome Number
- 0011 Container With Most Water
- 0012 Integer To Roman
- 0013 Roman To Integer
- 0014 Longest Common Prefix
- 0015 Three Sum
- 0016 3 Sum Closest
- 0017 Letter Combinations Of A Phone Number
- 0019 Remove Nth Node From End Of List
- 0020 Valid Parentheses
- 0021 Merge Two Sorted Lists
- 0022 Generate Parentheses
- 0024 Swap Nodes In Pairs
- 0027 Remove Element
- 0031 Next Permutation
- 0035 Search Insert Position
- 0054 Spiral Matrix
- 0055 Jump Game
- 0056 Merge Intervals
- 0058 Length of Last Word
- 0061 Rotate List
- 0062 Unique Paths
- 0066 Plus One
- 0067 Add Binary
- 0074 Search a 2D Matrix
- 0079 Search Word
- 0083 Remove Duplicates From Sorted List
- 0094 Binary Tree Inorder Traversal
- 0098 Validate Binary Search Tree
- 0100 Same Tree
- 0101 Symmetric Tree
- 0104 Maximum Depth of Binary Tree
- 0106 Construct Binary Tree From Inorder And Postorder Traversal
- 0141 Linked List Cycle
- 0146 LRU Cache
- 0167 Two Sum II - Input array is sorted
- 0167 Two Sum II Input Array is Sorted
- 0171 Excel Sheet Column Number
- 0179 Largest Number
- 0203 Remove Linked List Elements
- 0206 Reverse-Linked-List
- 0209 Minimum Size Subarray Sum
- 0258 Add Digits
- 0347 Top K Frequent Elements
- 0402 Remove K Digits
- 0406 Queue Reconstruction By Height
- 0485 Max Consecutive Ones
- 0539 Minimum Time Difference
- 0581 Shortest Unsorted Continuous Subarray
- 0881 Boats to Save People
- 0997 Find The Town Judge
- 1130 Minimum Cost Tree From Leaf Values
- Leetcode Python 题解
- 001 two sum
- 002 add two numbers
- 003 longest substring without repeating characters
- 004 median of two sorted arrays
- 005 longest palindromic substring
- 006 ZigZag Conversion
- 007 Reverse Integer
- 008 string to integer (atoi)
- 009 Palindrome Number
- 010 regular expression matching
- 011 container with most water
- 012 Integer to Roman
- 013 Roman to Integer
- 014 longest common prefix
- 015 3sum
- 016 3sum closest
- 017 letter combinations of a phone number
- 018 4sum
- 019 remove nth node from end of list
- 020 valid parentheses
- 021 merge two sorted lists
- 022 generate parentheses
- 023 merge k sorted lists
- 024 swap nodes in pairs
- 026 Remove Duplicates from Sorted Array
- 027 Remove Element
- 028 implement strstr()
- 030 Substring with Concatenation of All Words
- 031 next permutation
- 032 longest valid parentheses
- 033 search in rotated sorted array
- 034 Search for a Range
- 035 search insert position
- 038 Count and Say
- 039 combination sum
- 040 combination sum ii
- 041 First Missing Positive
- 042 trapping rain water
- 043 multiply strings
- 044 wildcard matching
- 045 Jump Game II
- 046 permutations
- 047 permutations ii
- 048 rotate image
- 049 group anagrams python
- 050 pow(x, n)
- 051 n-queens
- 052 n-queens ii
- 053 maximum subarray
- 054 spiral matrix
- 055 jump game
- 056 Merge Intervals
- 058 length of last word
- 059 spiral matrix ii
- 060 permutation sequence
- 061 rotate list
- 062 unique paths
- 064 minimum path sum
- 065 unique paths ii
- 066 plus one
- 067 add binary
- 069 sqrt(x)
- 070 Climbing Stairs
- 072 edit distance
- 073 Set Matrix Zeroes
- 074 search a 2d matrix
- 075 sort colors
- 076 Minimum Window Substring
- 077 combinations
- 078 Subsets
- 079 word search
- 082 remove duplicates from sorted list ii
- 083 remove duplicates from sorted list
- 086 partition list
- 088 merge sorted array
- 089 gray code
- 090 subsets ii
- 091 decode ways
- 092 reverse linked list ii
- 093 restore ip addresses
- 094 binary tree inorder traversal
- 096 unique binary search trees
- 098 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
- 118 pascal's triangle
- 119 Pascal's Triangle II
- 120 Triangle
- 121 Best Time to Buy and Sell Stock
- 124 Binary Tree Maximum Path Sum
- 125 valid palindrome
- 126 Word Ladder II
- 127 word ladder
- 128 Longest Consecutive Sequence
- 129 sum root to leaf numbers
- 130 surrounded regions
- 131 palindrome partitioning
- 133 clone graph
- 136 single number
- 139 word break
- 140 word break ii
- 141 linked list cycle
- 142_Linked_List_Cycle_II md
- 143 reorder list
- 144 binary tree preorder traversal
- 145 binary tree postorder traversal
- 147 insertion sort list
- 148 sort list
- 150 evaluate reverse polish notation
- 151 reverse words in a string
- 152 maximum product subarray
- 153 find minimum in rotated sorted array
- 155 min stack
- 157 Read N Characters Given Read4
- 158 Read N Characters Given Read4 II - Call multiple times
- 159 Longest Substring with At Most Two Distinct Characters
- 160 intersection of two linked lists
- 162 find peak element
- 165 compare version numbers
- 166 Fraction to Recurring Decimal
- 167 two sum ii - input array is sorted
- 168 excel sheet column title
- 169 majority element
- 171 excel sheet column number
- 173 binary search tree iterator
- 179 Largest Number
- 182 duplicate emails
- 189 rotate array
- 191 number of 1 bits
- 198 house robber
- 199 binary tree right side view
- 200 number of islands
- 203 remove linked list elements
- 204 count primes
- 205 isomorphic strings
- 206 reverse linked list
- 207 course schedule
- 208 implement trie (prefix tree)
- 210 course schedule ii
- 211 Add and Search Word - Data structure design
- 213 house robber ii
- 216 combination sum iii
- 217 contains duplicate
- 218 The Skyline Problem
- 219 contains duplicate ii
- 221 maximal square
- 222 count complete tree nodes
- 223 rectangle area
- 224 Basic Calculator
- 225 implement stack using queues
- 226 invert binary tree
- 227 basic calculator ii
- 228 summary ranges
- 229 majority element ii
- 230 kth smallest element in a bst
- 231 Power of Two
- 232 implement queue using stacks
- 234 palindrome linked list
- 235 lowest common ancestor of a binary search tree
- 236 lowest common ancestor of a binary tree
- 237 delete node in a linked list
- 238 product of array except self
- 240 search a 2d matrix ii
- 242 valid anagram
- 249 Group Shifted Strings
- 252 Meeting Rooms
- 255 Verify Preorder Sequence in Binary Search Tree
- 256 Paint House
- 257 binary tree paths
- 258_Add_Digits md
- 261 Graph Valid Tree
- 263 ugly number
- 264 ugly number ii
- 265 Paint House II
- 266 Palindrome Permutation
- 267 Palindrome Permutation II
- 268 missing number
- 270 Closest Binary Search Tree Value
- 276 Paint Fence
- 277 Find the Celebrity
- 278 First Bad Version
- 279 perfect squares
- 280 Wiggle Sort
- 283 move zeroes
- 285 inorder successor in bst
- 286 Walls and Gates
- 287 Find the Duplicate Number
- 289 game of life
- 290 word pattern
- 292 nim game
- 293 Flip Game
- 296 Best Meeting Point
- 298 Binary Tree Longest Consecutive Sequence
- 299 bulls and cows
- 300 longest increasing subsequence
- 303 range sum query - immutable
- 316 Remove Duplicate Letters
- 319 Bulb Switcher
- 322 Coin Change
- 323 number of connected components in an undirected graph
- 324 Wiggle Sort II
- 326 power of three
- 328 odd even linked list
- 334 increasing triplet subsequence
- 337 house robber iii
- 338 Counting Bits
- 339 Nested List Weight Sum
- 341 Flatten Nested List Iterator
- 342 Power of Four
- 344 reverse string
- 345 Reverse Vowels of a String
- 349 intersection of two arrays
- 350 intersection of two arrays ii
- 353 Design Snake Game
- 361 Bomb Enemy
- 364 Nested List Weight Sum II
- 366 Find Leaves of Binary Tree
- 367 valid perfect square
- 369 Plus One Linked List
- 371 sum of two integers
- 374 Guess Number Higher or Lower
- 377 combination sum iv
- 378 kth smallest element in a sorted matrix
- 380 Insert Delete GetRandom O(1)
- 381 Insert Delete GetRandom O(1) - Duplicates allowed
- 382 linked list random node
- 383 ransom note
- 384 Shuffle an Array
- 386 Lexicographical Numbers
- 387 first unique character in a string
- 388 Longest Absolute File Path
- 389 find the difference
- 392 is subsequence
- 394 decode string
- 400 Nth Digit
- 401 binary watch
- 404 sum of left leaves
- 405 Convert a Number to Hexadecimal
- 406 Queue Reconstruction by Height
- 412 fizz buzz
- 413 Arithmetic Slices
- 414 third maximum number
- 415 add strings
- 416 Partition Equal Subset Sum
- 421 Maximum XOR of Two Numbers in an Array
- 422 Valid Word Square
- 434 number of segments in a string
- 435 Non-overlapping Intervals
- 437 path sum iii
- 438 Find All Anagrams in a String
- 439 Ternary Expression Parser
- 441 arranging coins
- 448 Find All Numbers Disappeared in an Array
- 450 Delete Node in a BST
- 453 Minimum Moves to Equal Array Elements
- 459 Repeated Substring Pattern
- 461 Hamming Distance
- 463 Island Perimeter
- 467 Unique Substrings in Wraparound String
- 469 Convex Polygon
- 476 Number Complement
- 477 Total Hamming Distance
- 485 Max Consecutive Ones
- 494 Target Sum
- 536 Construct Binary Tree from String
- 587 Erect the Fence
- 599 Minimum Index Sum of Two Lists
- 606 Construct String from Binary Tree
- 611 Valid Triangle Number
- 646 Maximum Length of Pair Chain
- 647 Palindromic Substrings
- 657 Judge Route Circle
- 665 Non-decreasing Array
- 672 Bulb Switcher II
- 681 Next Closest Time
- 682 Baseball Game
- 685 Redundant Connection II
- 687 Longest Univalue Path
- 693 Binary Number with Alternating Bits
- 701 Insert into a Binary Search Tree
- 707 Design Linked List
- 740 delete and earn
- 760 Find Anagram Mappings
- 774 Minimize Max Distance to Gas Station
- 777 Swap Adjacent in LR String
- 844 Backspace String Compare
- 剑指 Offer Java 题解
- 找出数组中重复的数字
- 不修改数组找出重复的数字
- 二维数组中的查找
- 替换空格
- 从尾到头打印链表
- 重建二叉树
- 二叉树的下一个结点
- 用两个栈实现队列
- 用两个队列实现栈
- 斐波那契数列
- 跳台阶
- 变态跳台阶
- 矩形覆盖
- 旋转数组的最小数字
- 矩阵中的路径
- 机器人的移动范围
- 剪绳子
- 二进制中 1 的个数
- 数值的整数次方
- 打印从 1 到最大的 n 位数
- 在O(1)时间内删除链表节点
- 删除链表中重复的节点
- 正则表达式匹配
- 表示数值的字符串
- 调整数组顺序使奇数位于偶数前面
- 链表中倒数第k个结点
- 链表中环的入口结点
- 反转链表
- 合并两个排序的链表
- 树的子结构
- 二叉树的镜像
- 对称的二叉树
- 顺时针打印矩阵
- 包含min函数的栈
- 栈的压入、弹出序列
- 不分行从上到下打印二叉树
- 把二叉树打印成多行
- 按之字形打印二叉树
- 二叉搜索树的后序遍历序列
- 二叉树中和为某一值的路径
- 复杂链表的复制
- 二叉搜索树与双向链表
- 序列化二叉树
- 字符串的排列
- 数组中出现次数超过一半的数字
- 获取数组中最小的k个数
- 数据流中的中位数
- 连续子数组的最大和
- 整数中1出现的次数
- 数字序列中某一位的数字
- 把数组排成最小的数
- 把数字翻译成字符串
- 礼物的最大价值
- 最长不含重复字符的子字符串
- 丑数
- 第一个只出现一次的字符
- 字符流中第一个不重复的字符
- 两个链表的第一个公共结点
- 数字在排序数组中出现的次数
- 0到n-1中缺失的数字
- 数组中数值和下标相等的元素
- 二叉搜索树的第k个结点
- 二叉树的深度
- 平衡二叉树
- 数组中只出现一次的两个数字
- 数组中唯一只出现一次的数字
- 和为S的两个数字
- 和为S的连续正数序列
- 翻转单词顺序
- 左旋转字符串
- 滑动窗口的最大值
- 扑克牌的顺子