leetcode题解。
- 34. Find First and Last Position of Element in Sorted Array
- 35. Search Insert Position
- 74. Search a 2D Matrix
- 278. First Bad Version
- 658. Find K Closest Element
- 702. Search in a Sorted Array of Unknown Size
- 704. Binary Search
- 744. Find Smallest Letter Greater Than Target
- Binary Search Summary
- laicode 4. Selection Sort
- laicode 9. Merge Sort
- laicode 10. Quick Sort
- laicode 258. Move 0s To The End I
- 75. Sort Colors
- 912. Sort An Array
- 206. Reverse Linked List
- 876. Middle of the Linked List
- 141. Linked List Cycle
- 142. Linked List Cycle II
- laicode 39. Insert In Sorted Linked List
- 708. Insert into a Sorted Circular Linked List
- 21. Merge Two Sorted Lists
- 143. Reorder List
- 86. Partition List
- 148. Sort List
- 2. Add Two Numbers
- 234. Palindrome Linked List
- 203. Remove Linked List Elements
- laicode 280. Sort With 2 Stacks
- 232. Implement Queue using Stacks
- 155. Min Stack
- 225. Implement Stack using Queues
- laicode 645. Deque By Three Stacks
- 144. Binary Tree Preorder Traversal
- 94. Binary Tree Inorder Traversal
- 145. Binary Tree Postorder Traversal
- 104. Maximum Depth of Binary Tree
- 110. Balanced Binary Tree
- 101. Symmetric Tree
- 951. Flip Equivalent Binary Trees
- laicode 50. Tweaked Identical Binary Trees
- 98. Validate Binary Search Tree
- 938. Range Sum of BST
- laicode 55. Get Keys In Binary Search Tree In Given Range
- laicode 52. Search In Binary Search Tree
- 701. Insert into a Binary Search Tree
- 450. Delete Node in a BST
- Heap Basics
- laicode 25. K Smallest In Unsorted Array
- 102. Binary Tree Level Order Traversal
- 785. Is Graph Bipartite
- 958. Check Completeness of a Binary Tree
- 378. Kth Smallest Element in a Sorted Matrix
- 78. Subsets
- 22. Generate Parentheses
- 39. Combination Sum
- laicode 73. Combinations Of Coins
- 46. Permutations
- 692. Top K Frequent Words
- 268. Missing Number
- laicode 652. Common Numbers Of Two Sorted Arrays
- laicode 395. Remove Certain Characters
- laicode 281. Remove Spaces
- laicode 79. Remove Adjacent Repeated Characters I
- laicode 82. Remove Adjacent Repeated Characters IV
- laicode 85. Determine If One String Is Another's Substring
- 344. Reverse String
- 186. Reverse Words in a String II
- laicode 397. Right Shift By N Characters
- laicode 649. String Replace (basic)
- 47. Permutations II
- laicode 197. ReOrder Array
- laicode 611. Compress String II
- laicode 175. Decompress String II
- 3. Longest Substring Without Repeating Characters
- 438. Find All Anagrams in a String
- 1004. Max Consecutive Ones III
- 231. Power of Two
- laicode 75. Number Of Different Bits
- laicode 77. All Unique Characters II
- 190. Reverse Bits
- laicode 78. Hexadecimal Representation
- 54. Spiral Matrix
- laicode 233. N Queens
- laicode 35. Reverse Linked List In Pairs
- 408. Valid Word Abbreviation
- laicode 646. Store Number Of Nodes In Left Subtree
- 236. Lowest Common Ancestor of a Binary Tree
- 156. Binary Tree Upside Down
- 509. Fibonacci Number
- 674. Longest Continuous Increasing Subsequence
- laicode 87. Max Product Of Cutting Rope
- 55. Jump Game
- laicode 103. Longest Consecutive 1s
- laicode 104. Longest Cross Of 1s
- 1139. Largest 1-Bordered Square
- laicode 105. Largest X Of 1s
- laicode 638. Largest Square Of Matches
- laicode 106. Largest SubMatrix Sum
- laicode 108. Perfect Shuffle
- laicode 109. Reservoir Sampling
- laicode 111. Random7 Using Random5
- 295. Find Median from Data Stream
- laicode 114. 95 Percentile
- laicode 110. Generalized Reservoir Sampling
- laicode 112. Random1000 Using Random5
- 26. Remove Duplicates from Sorted Array
- 80. Remove Duplicates from Sorted Array II
- laicode 117. Array Deduplication III
- laicode 259. Move 0s To The End II
- 48. Rotate Image
- 103. Binary Tree Zigzag Level Order Traversal
- 235. Lowest Common Ancestor of a Binary Search Tree
- 1650. Lowest Common Ancestor of a Binary Tree III
- laicode 118. Array Deduplication IV
- laicode 119. Largest And Smallest
- laicode 120. Largest And Second Largest
- 272. Closest Binary Search Tree Value II
- 1676. Lowest Common Ancestor of a Binary Tree IV
- laicode 647. Lowest Common Ancestor V
- laicode 648. Lowest Common Ancestor VI
- 138. Copy List with Random Pointer
- 133. Clone Graph
- 270. Closest Binary Search Tree Value
- laicode 136. Largest Number Smaller In Binary Search Tree
- 1. Two Sum
- laicode 181. 2 Sum All Pair I
- laicode 182. 2 Sum All Pair II
- laicode 276. Get Count Array
- 15. 3Sum
- laicode 188. 4 Sum
- 110. Balanced Binary Tree
- laicode 138. Maximum Path Sum Binary Tree I
- 144. Binary Tree Preorder Traversal
- 53. Maximum Subarray
- 145. Binary Tree Postorder Traversal
- 124. Binary Tree Maximum Path Sum
- laicode 639. Max Path Sum From Leaf To Root
- laicode 141. Binary Tree Path Sum To Target III
- laicode 140. Maximum Path Sum Binary Tree III
- 114. Flatten Binary Tree to Linked List
- 105. Construct Binary Tree from Preorder and Inorder Traversal
- laicode 211. Reconstruct Binary Search Tree With Postorder Traversal
- laicode 215. Reconstruct Binary Tree With Levelorder And Inorder
- 90. Subsets II
- laicode 640. All Subsets of Size K
- laicode 179. All Valid Permutations Of Parentheses II
- 254. Factor Combinations
- laicode 643. All Permutations of Subsets
- laicode 641. All Subsets II of Size K
- laicode 642. All Valid Permutations Of Parentheses III
- laicode 264. Keep Distance For Identical Elements
- 17. Letter Combinations of a Phone Number
- 93. Restore IP Addresses
- laicode 650. Common Numbers Of Two Arrays I(Array version)
- laicode 651. Common Numbers Of Two Arrays II(Array version)
- 84. Largest Rectangle in Histogram
- 42. Trapping Rain Water
- 149. Max Points on a Line
- 23. Merge k Sorted Lists
- laicode 133. Merge K Sorted Array
- laicode 171. Common Elements In Three Sorted Array
- laicode 644. Common Elements In K Sorted Lists
- 407. Trapping Rain Water II
- laicode 191. Largest Product Of Length
- laicode 193. Kth Smallest With Only 3, 5, 7 As Factors
- laicode 194. Kth Closest Point To <0,0,0>
- laicode 681. Seven Puzzle
- 773. Sliding Puzzle
- 127. Word Ladder
- 126. Word Ladder II
- laicode. 195. Place To Put The Chair I
- 207. Course Schedule
- 210. Course Schedule II
- 269. Alien Dictionary
- 239. Sliding Window Maximum
- 146. LRU Cache
- 169. Majority Element
- laicode 207. Majority Number II
- laicode 208. Majority Number III
- laicode 202. Kth Smallest In Two Sorted Arrays
- 4. Median of Two Sorted Arrays
- laicode 288. First Non-Repeating Character In Stream
- 1429. First Unique Number
- 300. Longest Increasing Subsequence
- laicode 682. Longest Ascending Subsequence II
- 491. Increasing Subsequences
- laicode 683. Count Ascending Subsequence
- laicode 217. Largest Set Of Points With Positive Slope
- laicode 176. Longest Common Substring
- 1143. Longest Common Subsequence
- 1547. Minimum Cost to Cut a Stick
- laicode 657. Can I Win II
- 150. Evaluate Reverse Polish Notation
- 33. Search in Rotated Sorted Array
- 81. Search in Rotated Sorted Array II
- laicode 22. Search In Shifted Sorted Array II
- 153. Find Minimum in Rotated Sorted Array
- 154. Find Minimum in Rotated Sorted Array II
- 147. Insertion Sort List
- laicode 28. Selection Sort Linked List
- laicode 30. Quick Sort Linked List