LeetCode算法解答
此页面不断更新LeetCode-中文算法解答。
算法解答
3.Longest-Substring-Without-Repeating-Characters
5.Longest-Palindromic-Substring
10.Regular-Expression-Matching
17.Letter-Combinations-of-a-Phone-Number
19.Remove-Nth-Node-From-End-of-List
26.Remove-Duplicates-from-Sorted-Array
30.Substring-with-Concatenation-of-All-Words
33.Search-in-Rotated-Sorted-Array
34.Find-First-and-Last-Position-of-Element-in-Sorted-Array
80.Remove-Duplicates-from-Sorted-Array-II
81.Search-in-Rotated-Sorted-Array-II
82.Remove-Duplicates-from-Sorted-List-II
83.Remove-Duplicates-from-Sorted-List
84.Largest-Rectangle-in-Histogram
94.Binary-Tree-Inorder-Traversal
95.Unique-Binary-Search-Trees-II
98.Validate-Binary-Search-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
111.Minimum-Depth-of-Binary-Tree
114.Flatten-Binary-Tree-to-Linked-List
116.Populating-Next-Right-Pointers-in-Each-Node
117.Populating-Next-Right-Pointers-in-Each-Node-II
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
128.Longest-Consecutive-Sequence
132.Palindrome-Partitioning-II
138.Copy-List-with-Random-Pointer
144.Binary-Tree-Preorder-Traversal
145.Binary-Tree-Postorder-Traversal
150.Evaluate-Reverse-Polish-Notation
153.Find-Minimum-in-Rotated-Sorted-Array
154.Find-Minimum-in-Rotated-Sorted-Array-II
160.Intersection-of-Two-Linked-Lists
166.Fraction-to-Recurring-Decimal
167.Two-Sum-II---Input-array-is-sorted
173.Binary-Search-Tree-Iterator
188.Best-Time-to-Buy-and-Sell-Stock-IV
199.Binary-Tree-Right-Side-View
201.Bitwise-AND-of-Numbers-Range
203.Remove-Linked-List-Elements
208.Implement-Trie-(Prefix-Tree)
211.Add-and-Search-Word---Data-structure-design
215.Kth-Largest-Element-in-an-Array
225.Implement-Stack-using-Queues
230.Kth-Smallest-Element-in-a-BST
232.Implement-Queue-using-Stacks
235.Lowest-Common-Ancestor-of-a-Binary-Search-Tree
237.Delete-Node-in-a-Linked-List
238.Product-of-Array-Except-Self
241.Different-Ways-to-Add-Parentheses
300.Longest-Increasing-Subsequence
303.Range-Sum-Query---Immutable
304.Range-Sum-Query-2D---Immutable
309.Best-Time-to-Buy-and-Sell-Stock-with-Cooldown
318.Maximum-Product-of-Word-Lengths
345.Reverse-Vowels-of-a-String
349.Intersection-of-Two-Arrays
350.Intersection-of-Two-Arrays-II
357.Count-Numbers-with-Unique-Digits
374.Guess-Number-Higher-or-Lower
378.Kth-Smallest-Element-in-a-Sorted-Matrix
387.First-Unique-Character-in-a-String
405.Convert-a-Number-to-Hexadecimal
406.Queue-Reconstruction-by-Height
423.Reconstruct-Original-Digits-from-English
424.Longest-Repeating-Character-Replacement
434.Number-of-Segments-in-a-String
438.Find-All-Anagrams-in-a-String
448.Find-All-Numbers-Disappeared-in-an-Array
452.Minimum-Number-of-Arrows-to-Burst-Balloons
453.Minimum-Moves-to-Equal-Array-Elements
459.Repeated-Substring-Pattern
462.Minimum-Moves-to-Equal-Array-Elements-II
674.Longest-Continuous-Increasing-Subsequence
762.Prime-Number-of-Set-Bits-in-Binary-Representation
825.Friends-Of-Appropriate-Ages
826.Most-Profit-Assigning-Work
897.Increasing-Order-Search-Tree
914.X-of-a-Kind-in-a-Deck-of-Cards
915.Partition-Array-into-Disjoint-Intervals
918.Maximum-Sum-Circular-Subarray
919.Complete-Binary-Tree-Inserter
926.Flip-String-to-Monotone-Increasing
943.Find-the-Shortest-Superstring
944.Delete-Columns-to-Make-Sorted
945.Minimum-Increment-to-Make-Array-Unique
947.Most-Stones-Removed-with-Same-Row-or-Column
949.Largest-Time-for-Given-Digits
950.Reveal-Cards-In-Increasing-Order
951.Flip-Equivalent-Binary-Trees
952.Largest-Component-Size-by-Common-Factor
953.Verifying-an-Alien-Dictionary
955.Delete-Columns-to-Make-Sorted-II
958.Check-Completeness-of-a-Binary-Tree
973.K-Closest-Points-to-Origin