kongpingfan / go-leetcode

leetcode to solutions: https://kongpingfan.me/go-leetcode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Summary

  • Introduction
  • [1. Two Sum](1. Two Sum.md)
  • [2. Add Two Numbers](2. Add Two Numbers.md)
  • [3. Longest Substring Without Repeating Characters](3. Longest Substring Without Repeating Characters.md)
  • [4. Median of Two Sorted Arrays](4. Median of Two Sorted Arrays.md)
  • [5. Longest Palindromic Substring](5. Longest Palindromic Substring.md)
  • [6. ZigZag Conversion](6. ZigZag Conversion.md)
  • [7. Reverse Integer](7. Reverse Integer.md)
  • [8. String to Integer (atoi)](8. String to Integer "atoi".md)
  • [9. Palindrome Number](9. Palindrome Number.md)
  • [10. Regular Expression Matching](10. Regular Expression Matching.md)
  • [11. Container With Most Water](11. Container With Most Water.md)
  • [12. Integer to Roman](12. Integer to Roman.md)
  • [13. Roman to Integer](13. Roman to Integer.md)
  • [14. Longest Common Prefix](14. Longest Common Prefix.md)
  • [15. 3Sum](15. 3Sum.md)
  • [16. 3Sum Closest](16. 3Sum Closest.md)
  • [17. Letter Combinations of a Phone Number](17. Letter Combinations of a Phone Number.md)
  • [18. 4Sum](18. 4Sum.md)
  • [19. Remove Nth Node From End of List](19. Remove Nth Node From End of List.md)
  • [20. Valid Parentheses](20. Valid Parentheses.md)
  • [21. Merge Two Sorted Lists](21. Merge Two Sorted Lists.md)
  • [22. Generate Parentheses](22. Generate Parentheses.md)
  • [23. Merge k Sorted Lists](23. Merge k Sorted Lists.md)
  • [24. Swap Nodes in Pairs](24. Swap Nodes in Pairs.md)
  • [25. Reverse Nodes in k-Group](25. Reverse Nodes in k-Group.md)
  • [26. Remove Duplicates from Sorted Array](26. Remove Duplicates from Sorted Array.md)
  • [27. Remove Element](27. Remove Element.md)
  • [28. Implement strStr()](28. Implement strStr"".md)
  • [29. Divide Two Integers](29. Divide Two Integers.md)
  • [30. Substring with Concatenation of All Words](30. Substring with Concatenation of All Words.md)
  • [31. Next Permutation](31. Next Permutation.md)
  • [32. Longest Valid Parentheses](32. Longest Valid Parentheses.md)
  • [33. Search in Rotated Sorted Array](33. Search in Rotated Sorted Array.md)
  • [34. Find First and Last Position of Element in Sorted Array](34. Find First and Last Position of Element in Sorted Array.md)
  • [35. Search Insert Position](35. Search Insert Position.md)
  • [36. Valid Sudoku](36. Valid Sudoku.md)
  • [37. Sudoku Solver](37. Sudoku Solver.md)
  • [38. Count and Say](38. Count and Say.md)
  • [39. Combination Sum](39. Combination Sum.md)
  • [40. Combination Sum II](40. Combination Sum II.md)
  • [41. First Missing Positive](41. First Missing Positive.md)
  • [42. Trapping Rain Water](42. Trapping Rain Water.md)
  • [43. Multiply Strings](43. Multiply Strings.md)
  • [44. Wildcard Matching](44. Wildcard Matching.md)
  • [45. Jump Game II](45. Jump Game II.md)
  • [46. Permutations](46. Permutations.md)
  • [47. Permutations II](47. Permutations II.md)
  • [48. Rotate Image](48. Rotate Image.md)
  • [49. Group Anagrams](49. Group Anagrams.md)
  • [50. Pow(x, n)](50. Pow"x, n".md)
  • [51. N-Queens](51. N-Queens.md)
  • [52. N-Queens II](52. N-Queens II.md)
  • [53. Maximum Subarray](53. Maximum Subarray.md)
  • [54. Spiral Matrix](54. Spiral Matrix.md)
  • [55. Jump Game](55. Jump Game.md)
  • [56. Merge Intervals](56. Merge Intervals.md)
  • [57. Insert Interval](57. Insert Interval.md)
  • [58. Length of Last Word](58. Length of Last Word.md)
  • [59. Spiral Matrix II](59. Spiral Matrix II.md)
  • [60. Permutation Sequence](60. Permutation Sequence.md)
  • [61. Rotate List](61. Rotate List.md)
  • [62. Unique Paths](62. Unique Paths.md)
  • [63. Unique Paths II](63. Unique Paths II.md)
  • [64. Minimum Path Sum](64. Minimum Path Sum.md)
  • [65. Valid Number](65. Valid Number.md)
  • [66. Plus One](66. Plus One.md)
  • [67. Add Binary](67. Add Binary.md)
  • [68. Text Justification](68. Text Justification.md)
  • [69. Sqrt(x)](69. Sqrt"x".md)
  • [70. Climbing Stairs](70. Climbing Stairs.md)
  • [71. Simplify Path](71. Simplify Path.md)
  • [72. Edit Distance](72. Edit Distance.md)
  • [73. Set Matrix Zeroes](73. Set Matrix Zeroes.md)
  • [74. Search a 2D Matrix](74. Search a 2D Matrix.md)
  • [75. Sort Colors](75. Sort Colors.md)
  • [76. Minimum Window Substring](76. Minimum Window Substring.md)
  • [77. Combinations](77. Combinations.md)
  • [78. Subsets](78. Subsets.md)
  • [79. Word Search](79. Word Search.md)
  • [80. Remove Duplicates from Sorted Array II](80. Remove Duplicates from Sorted Array II.md)
  • [81. Search in Rotated Sorted Array II](81. Search in Rotated Sorted Array II.md)
  • [82. Remove Duplicates from Sorted List II](82. Remove Duplicates from Sorted List II.md)
  • [83. Remove Duplicates from Sorted List](83. Remove Duplicates from Sorted List.md)
  • [84. Largest Rectangle in Histogram](84. Largest Rectangle in Histogram.md)
  • [85. Maximal Rectangle](85. Maximal Rectangle.md)
  • [86. Partition List](86. Partition List.md)
  • [87. Scramble String](87. Scramble String.md)
  • [88. Merge Sorted Array](88. Merge Sorted Array.md)
  • [89. Gray Code](89. Gray Code.md)
  • [90. Subsets II](90. Subsets II.md)
  • [91. Decode Ways](91. Decode Ways.md)
  • [92. Reverse Linked List II](92. Reverse Linked List II.md)
  • [93. Restore IP Addresses](93. Restore IP Addresses.md)
  • [94. Binary Tree Inorder Traversal](94. Binary Tree Inorder Traversal.md)
  • [95. Unique Binary Search Trees II](95. Unique Binary Search Trees II.md)
  • [96. Unique Binary Search Trees](96. Unique Binary Search Trees.md)
  • [97. Interleaving String](97. Interleaving String.md)
  • [98. Validate Binary Search Tree](98. Validate Binary Search Tree.md)
  • [99. Recover Binary Search Tree](99. Recover Binary Search Tree.md)
  • [100. Same Tree](100. Same Tree.md)
  • [101. Symmetric Tree](101. Symmetric Tree.md)
  • [102. Binary Tree Level Order Traversal](102. Binary Tree Level Order Traversal.md)
  • [103. Binary Tree Zigzag Level Order Traversal](103. Binary Tree Zigzag Level Order Traversal.md)
  • [104. Maximum Depth of Binary Tree](104. Maximum Depth of Binary Tree.md)
  • [105. Construct Binary Tree from Preorder and Inorder Traversal](105. Construct Binary Tree from Preorder and Inorder Traversal.md)
  • [106. Construct Binary Tree from Inorder and Postorder Traversal](106. Construct Binary Tree from Inorder and Postorder Traversal.md)
  • [107. Binary Tree Level Order Traversal II](107. Binary Tree Level Order Traversal II.md)
  • [108. Convert Sorted Array to Binary Search Tree](108. Convert Sorted Array to Binary Search Tree.md)
  • [109. Convert Sorted List to Binary Search Tree](109. Convert Sorted List to Binary Search Tree.md)
  • [110. Balanced Binary Tree](110. Balanced Binary Tree.md)
  • [111. Minimum Depth of Binary Tree](111. Minimum Depth of Binary Tree.md)
  • [112. Path Sum](112. Path Sum.md)
  • [113. Path Sum II](113. Path Sum II.md)
  • [114. Flatten Binary Tree to Linked List](114. Flatten Binary Tree to Linked List.md)
  • [115. Distinct Subsequences](115. Distinct Subsequences.md)
  • [116. Populating Next Right Pointers in Each Node](116. Populating Next Right Pointers in Each Node.md)
  • [117. Populating Next Right Pointers in Each Node II](117. Populating Next Right Pointers in Each Node II.md)
  • [118. Pascal's Triangle](118. Pascal's Triangle.md)
  • [119. Pascal's Triangle II](119. Pascal's Triangle II.md)
  • [120. Triangle](120. Triangle.md)
  • [121. Best Time to Buy and Sell Stock](121. Best Time to Buy and Sell Stock.md)
  • [122. Best Time to Buy and Sell Stock II](122. Best Time to Buy and Sell Stock II.md)
  • [123. Best Time to Buy and Sell Stock III](123. Best Time to Buy and Sell Stock III.md)
  • [124. Binary Tree Maximum Path Sum](124. Binary Tree Maximum Path Sum.md)
  • [125. Valid Palindrome](125. Valid Palindrome.md)
  • [126. Word Ladder II](126. Word Ladder II.md)
  • [127. Word Ladder](127. Word Ladder.md)
  • [128. Longest Consecutive Sequence](128. Longest Consecutive Sequence.md)
  • [129. Sum Root to Leaf Numbers](129. Sum Root to Leaf Numbers.md)
  • [130. Surrounded Regions](130. Surrounded Regions.md)
  • [131. Palindrome Partitioning](131. Palindrome Partitioning.md)
  • [132. Palindrome Partitioning II](132. Palindrome Partitioning II.md)
  • [133. Clone Graph](133. Clone Graph.md)
  • [134. Gas Station](134. Gas Station.md)
  • [135. Candy](135. Candy.md)
  • [136. Single Number](136. Single Number.md)
  • [137. Single Number II](137. Single Number II.md)
  • [138. Copy List with Random Pointer](138. Copy List with Random Pointer.md)
  • [139. Word Break](139. Word Break.md)
  • [140. Word Break II](140. Word Break II.md)
  • [141. Linked List Cycle](141. Linked List Cycle.md)
  • [142. Linked List Cycle II](142. Linked List Cycle II.md)
  • [143. Reorder List](143. Reorder List.md)
  • [144. Binary Tree Preorder Traversal](144. Binary Tree Preorder Traversal.md)
  • [145. Binary Tree Postorder Traversal](145. Binary Tree Postorder Traversal.md)
  • [146. LRU Cache](146. LRU Cache.md)
  • [147. Insertion Sort List](147. Insertion Sort List.md)
  • [148. Sort List](148. Sort List.md)
  • [149. Max Points on a Line](149. Max Points on a Line.md)
  • [150. Evaluate Reverse Polish Notation](150. Evaluate Reverse Polish Notation.md)
  • [151. Reverse Words in a String](151. Reverse Words in a String.md)
  • [152. Maximum Product Subarray](152. Maximum Product Subarray.md)
  • [153. Find Minimum in Rotated Sorted Array](153. Find Minimum in Rotated Sorted Array.md)
  • [154. Find Minimum in Rotated Sorted Array II](154. Find Minimum in Rotated Sorted Array II.md)
  • [155. Min Stack](155. Min Stack.md)
  • [156. Binary Tree Upside Down](156. Binary Tree Upside Down.md)
  • [157. Read N Characters Given Read4](157. Read N Characters Given Read4.md)
  • [158. Read N Characters Given Read4 II - Call multiple times](158. Read N Characters Given Read4 II - Call multiple times.md)
  • [159. Longest Substring with At Most Two Distinct Characters](159. Longest Substring with At Most Two Distinct Characters.md)
  • [160. Intersection of Two Linked Lists](160. Intersection of Two Linked Lists.md)
  • [161. One Edit Distance](161. One Edit Distance.md)
  • [162. Find Peak Element](162. Find Peak Element.md)
  • [163. Missing Ranges](163. Missing Ranges.md)
  • [164. Maximum Gap](164. Maximum Gap.md)
  • [165. Compare Version Numbers](165. Compare Version Numbers.md)
  • [166. Fraction to Recurring Decimal](166. Fraction to Recurring Decimal.md)
  • [167. Two Sum II - Input array is sorted](167. Two Sum II - Input array is sorted.md)
  • [168. Excel Sheet Column Title](168. Excel Sheet Column Title.md)
  • [169. Majority Element](169. Majority Element.md)
  • [170. Two Sum III - Data structure design](170. Two Sum III - Data structure design.md)
  • [171. Excel Sheet Column Number](171. Excel Sheet Column Number.md)
  • [172. Factorial Trailing Zeroes](172. Factorial Trailing Zeroes.md)
  • [173. Binary Search Tree Iterator](173. Binary Search Tree Iterator.md)
  • [174. Dungeon Game](174. Dungeon Game.md)
  • [175. Combine Two Tables](175. Combine Two Tables.md)
  • [176. Second Highest Salary](176. Second Highest Salary.md)
  • [177. Nth Highest Salary](177. Nth Highest Salary.md)
  • [178. Rank Scores](178. Rank Scores.md)
  • [179. Largest Number](179. Largest Number.md)
  • [180. Consecutive Numbers](180. Consecutive Numbers.md)
  • [181. Employees Earning More Than Their Managers](181. Employees Earning More Than Their Managers.md)
  • [182. Duplicate Emails](182. Duplicate Emails.md)
  • [183. Customers Who Never Order](183. Customers Who Never Order.md)
  • [184. Department Highest Salary](184. Department Highest Salary.md)
  • [185. Department Top Three Salaries](185. Department Top Three Salaries.md)
  • [186. Reverse Words in a String II](186. Reverse Words in a String II.md)
  • [187. Repeated DNA Sequences](187. Repeated DNA Sequences.md)
  • [188. Best Time to Buy and Sell Stock IV](188. Best Time to Buy and Sell Stock IV.md)
  • [189. Rotate Array](189. Rotate Array.md)
  • [190. Reverse Bits](190. Reverse Bits.md)
  • [191. Number of 1 Bits](191. Number of 1 Bits.md)
  • [192. Word Frequency](192. Word Frequency.md)
  • [193. Valid Phone Numbers](193. Valid Phone Numbers.md)
  • [194. Transpose File](194. Transpose File.md)
  • [195. Tenth Line](195. Tenth Line.md)
  • [196. Delete Duplicate Emails](196. Delete Duplicate Emails.md)
  • [197. Rising Temperature](197. Rising Temperature.md)
  • [198. House Robber](198. House Robber.md)
  • [199. Binary Tree Right Side View](199. Binary Tree Right Side View.md)
  • [200. Number of Islands](200. Number of Islands.md)
  • [201. Bitwise AND of Numbers Range](201. Bitwise AND of Numbers Range.md)
  • [202. Happy Number](202. Happy Number.md)
  • [203. Remove Linked List Elements](203. Remove Linked List Elements.md)
  • [204. Count Primes](204. Count Primes.md)
  • [205. Isomorphic Strings](205. Isomorphic Strings.md)
  • [206. Reverse Linked List](206. Reverse Linked List.md)
  • [207. Course Schedule](207. Course Schedule.md)
  • [208. Implement Trie (Prefix Tree)](208. Implement Trie "Prefix Tree".md)
  • [209. Minimum Size Subarray Sum](209. Minimum Size Subarray Sum.md)
  • [210. Course Schedule II](210. Course Schedule II.md)
  • [211. Add and Search Word - Data structure design](211. Add and Search Word - Data structure design.md)
  • [212. Word Search II](212. Word Search II.md)
  • [213. House Robber II](213. House Robber II.md)
  • [214. Shortest Palindrome](214. Shortest Palindrome.md)
  • [215. Kth Largest Element in an Array](215. Kth Largest Element in an Array.md)
  • [216. Combination Sum III](216. Combination Sum III.md)
  • [217. Contains Duplicate](217. Contains Duplicate.md)
  • [218. The Skyline Problem](218. The Skyline Problem.md)
  • [219. Contains Duplicate II](219. Contains Duplicate II.md)
  • [220. Contains Duplicate III](220. Contains Duplicate III.md)
  • [221. Maximal Square](221. Maximal Square.md)
  • [222. Count Complete Tree Nodes](222. Count Complete Tree Nodes.md)
  • [223. Rectangle Area](223. Rectangle Area.md)
  • [224. Basic Calculator](224. Basic Calculator.md)
  • [225. Implement Stack using Queues](225. Implement Stack using Queues.md)
  • [226. Invert Binary Tree](226. Invert Binary Tree.md)
  • [227. Basic Calculator II](227. Basic Calculator II.md)
  • [228. Summary Ranges](228. Summary Ranges.md)
  • [229. Majority Element II](229. Majority Element II.md)
  • [230. Kth Smallest Element in a BST](230. Kth Smallest Element in a BST.md)
  • [231. Power of Two](231. Power of Two.md)
  • [232. Implement Queue using Stacks](232. Implement Queue using Stacks.md)
  • [233. Number of Digit One](233. Number of Digit One.md)
  • [234. Palindrome Linked List](234. Palindrome Linked List.md)
  • [235. Lowest Common Ancestor of a Binary Search Tree](235. Lowest Common Ancestor of a Binary Search Tree.md)
  • [236. Lowest Common Ancestor of a Binary Tree](236. Lowest Common Ancestor of a Binary Tree.md)
  • [237. Delete Node in a Linked List](237. Delete Node in a Linked List.md)
  • [238. Product of Array Except Self](238. Product of Array Except Self.md)
  • [239. Sliding Window Maximum](239. Sliding Window Maximum.md)
  • [240. Search a 2D Matrix II](240. Search a 2D Matrix II.md)
  • [241. Different Ways to Add Parentheses](241. Different Ways to Add Parentheses.md)
  • [242. Valid Anagram](242. Valid Anagram.md)
  • [243. Shortest Word Distance](243. Shortest Word Distance.md)
  • [244. Shortest Word Distance II](244. Shortest Word Distance II.md)
  • [245. Shortest Word Distance III](245. Shortest Word Distance III.md)
  • [246. Strobogrammatic Number](246. Strobogrammatic Number.md)
  • [247. Strobogrammatic Number II](247. Strobogrammatic Number II.md)
  • [248. Strobogrammatic Number III](248. Strobogrammatic Number III.md)
  • [249. Group Shifted Strings](249. Group Shifted Strings.md)
  • [250. Count Univalue Subtrees](250. Count Univalue Subtrees.md)
  • [251. Flatten 2D Vector](251. Flatten 2D Vector.md)
  • [252. Meeting Rooms](252. Meeting Rooms.md)
  • [253. Meeting Rooms II](253. Meeting Rooms II.md)
  • [254. Factor Combinations](254. Factor Combinations.md)
  • [255. Verify Preorder Sequence in Binary Search Tree](255. Verify Preorder Sequence in Binary Search Tree.md)
  • [256. Paint House](256. Paint House.md)
  • [257. Binary Tree Paths](257. Binary Tree Paths.md)
  • [258. Add Digits](258. Add Digits.md)
  • [259. 3Sum Smaller](259. 3Sum Smaller.md)
  • [260. Single Number III](260. Single Number III.md)
  • [261. Graph Valid Tree](261. Graph Valid Tree.md)
  • [262. Trips and Users](262. Trips and Users.md)
  • [263. Ugly Number](263. Ugly Number.md)
  • [264. Ugly Number II](264. Ugly Number II.md)
  • [265. Paint House II](265. Paint House II.md)
  • [266. Palindrome Permutation](266. Palindrome Permutation.md)
  • [267. Palindrome Permutation II](267. Palindrome Permutation II.md)
  • [268. Missing Number](268. Missing Number.md)
  • [269. Alien Dictionary](269. Alien Dictionary.md)
  • [270. Closest Binary Search Tree Value](270. Closest Binary Search Tree Value.md)
  • [271. Encode and Decode Strings](271. Encode and Decode Strings.md)
  • [272. Closest Binary Search Tree Value II](272. Closest Binary Search Tree Value II.md)
  • [273. Integer to English Words](273. Integer to English Words.md)
  • [274. H-Index](274. H-Index.md)
  • [275. H-Index II](275. H-Index II.md)
  • [276. Paint Fence](276. Paint Fence.md)
  • [277. Find the Celebrity](277. Find the Celebrity.md)
  • [278. First Bad Version](278. First Bad Version.md)
  • [279. Perfect Squares](279. Perfect Squares.md)
  • [280. Wiggle Sort](280. Wiggle Sort.md)
  • [281. Zigzag Iterator](281. Zigzag Iterator.md)
  • [282. Expression Add Operators](282. Expression Add Operators.md)
  • [283. Move Zeroes](283. Move Zeroes.md)
  • [284. Peeking Iterator](284. Peeking Iterator.md)
  • [285. Inorder Successor in BST](285. Inorder Successor in BST.md)
  • [286. Walls and Gates](286. Walls and Gates.md)
  • [287. Find the Duplicate Number](287. Find the Duplicate Number.md)
  • [288. Unique Word Abbreviation](288. Unique Word Abbreviation.md)
  • [289. Game of Life](289. Game of Life.md)
  • [290. Word Pattern](290. Word Pattern.md)
  • [291. Word Pattern II](291. Word Pattern II.md)
  • [292. Nim Game](292. Nim Game.md)
  • [293. Flip Game](293. Flip Game.md)
  • [294. Flip Game II](294. Flip Game II.md)
  • [295. Find Median from Data Stream](295. Find Median from Data Stream.md)
  • [296. Best Meeting Point](296. Best Meeting Point.md)
  • [297. Serialize and Deserialize Binary Tree](297. Serialize and Deserialize Binary Tree.md)
  • [298. Binary Tree Longest Consecutive Sequence](298. Binary Tree Longest Consecutive Sequence.md)
  • [299. Bulls and Cows](299. Bulls and Cows.md)
  • [300. Longest Increasing Subsequence](300. Longest Increasing Subsequence.md)
  • [301. Remove Invalid Parentheses](301. Remove Invalid Parentheses.md)
  • [302. Smallest Rectangle Enclosing Black Pixels](302. Smallest Rectangle Enclosing Black Pixels.md)
  • [303. Range Sum Query - Immutable](303. Range Sum Query - Immutable.md)
  • [304. Range Sum Query 2D - Immutable](304. Range Sum Query 2D - Immutable.md)
  • [305. Number of Islands II](305. Number of Islands II.md)
  • [306. Additive Number](306. Additive Number.md)
  • [307. Range Sum Query - Mutable](307. Range Sum Query - Mutable.md)
  • [308. Range Sum Query 2D - Mutable](308. Range Sum Query 2D - Mutable.md)
  • [309. Best Time to Buy and Sell Stock with Cooldown](309. Best Time to Buy and Sell Stock with Cooldown.md)
  • [310. Minimum Height Trees](310. Minimum Height Trees.md)
  • [311. Sparse Matrix Multiplication](311. Sparse Matrix Multiplication.md)
  • [312. Burst Balloons](312. Burst Balloons.md)
  • [313. Super Ugly Number](313. Super Ugly Number.md)
  • [314. Binary Tree Vertical Order Traversal](314. Binary Tree Vertical Order Traversal.md)
  • [315. Count of Smaller Numbers After Self](315. Count of Smaller Numbers After Self.md)
  • [316. Remove Duplicate Letters](316. Remove Duplicate Letters.md)
  • [317. Shortest Distance from All Buildings](317. Shortest Distance from All Buildings.md)
  • [318. Maximum Product of Word Lengths](318. Maximum Product of Word Lengths.md)
  • [319. Bulb Switcher](319. Bulb Switcher.md)
  • [320. Generalized Abbreviation](320. Generalized Abbreviation.md)
  • [321. Create Maximum Number](321. Create Maximum Number.md)
  • [322. Coin Change](322. Coin Change.md)
  • [323. Number of Connected Components in an Undirected Graph](323. Number of Connected Components in an Undirected Graph.md)
  • [324. Wiggle Sort II](324. Wiggle Sort II.md)
  • [325. Maximum Size Subarray Sum Equals k](325. Maximum Size Subarray Sum Equals k.md)
  • [326. Power of Three](326. Power of Three.md)
  • [327. Count of Range Sum](327. Count of Range Sum.md)
  • [328. Odd Even Linked List](328. Odd Even Linked List.md)
  • [329. Longest Increasing Path in a Matrix](329. Longest Increasing Path in a Matrix.md)
  • [330. Patching Array](330. Patching Array.md)
  • [331. Verify Preorder Serialization of a Binary Tree](331. Verify Preorder Serialization of a Binary Tree.md)
  • [332. Reconstruct Itinerary](332. Reconstruct Itinerary.md)
  • [333. Largest BST Subtree](333. Largest BST Subtree.md)
  • [334. Increasing Triplet Subsequence](334. Increasing Triplet Subsequence.md)
  • [335. Self Crossing](335. Self Crossing.md)
  • [336. Palindrome Pairs](336. Palindrome Pairs.md)
  • [337. House Robber III](337. House Robber III.md)
  • [338. Counting Bits](338. Counting Bits.md)
  • [339. Nested List Weight Sum](339. Nested List Weight Sum.md)
  • [340. Longest Substring with At Most K Distinct Characters](340. Longest Substring with At Most K Distinct Characters.md)
  • [341. Flatten Nested List Iterator](341. Flatten Nested List Iterator.md)
  • [342. Power of Four](342. Power of Four.md)
  • [343. Integer Break](343. Integer Break.md)
  • [344. Reverse String](344. Reverse String.md)
  • [345. Reverse Vowels of a String](345. Reverse Vowels of a String.md)
  • [346. Moving Average from Data Stream](346. Moving Average from Data Stream.md)
  • [347. Top K Frequent Elements](347. Top K Frequent Elements.md)
  • [348. Design Tic-Tac-Toe](348. Design Tic-Tac-Toe.md)
  • [349. Intersection of Two Arrays](349. Intersection of Two Arrays.md)
  • [350. Intersection of Two Arrays II](350. Intersection of Two Arrays II.md)
  • [351. Android Unlock Patterns](351. Android Unlock Patterns.md)
  • [352. Data Stream as Disjoint Intervals](352. Data Stream as Disjoint Intervals.md)
  • [353. Design Snake Game](353. Design Snake Game.md)
  • [354. Russian Doll Envelopes](354. Russian Doll Envelopes.md)
  • [355. Design Twitter](355. Design Twitter.md)
  • [356. Line Reflection](356. Line Reflection.md)
  • [357. Count Numbers with Unique Digits](357. Count Numbers with Unique Digits.md)
  • [358. Rearrange String k Distance Apart](358. Rearrange String k Distance Apart.md)
  • [359. Logger Rate Limiter](359. Logger Rate Limiter.md)
  • [360. Sort Transformed Array](360. Sort Transformed Array.md)
  • [361. Bomb Enemy](361. Bomb Enemy.md)
  • [362. Design Hit Counter](362. Design Hit Counter.md)
  • [363. Max Sum of Rectangle No Larger Than K](363. Max Sum of Rectangle No Larger Than K.md)
  • [364. Nested List Weight Sum II](364. Nested List Weight Sum II.md)
  • [365. Water and Jug Problem](365. Water and Jug Problem.md)
  • [366. Find Leaves of Binary Tree](366. Find Leaves of Binary Tree.md)
  • [367. Valid Perfect Square](367. Valid Perfect Square.md)
  • [368. Largest Divisible Subset](368. Largest Divisible Subset.md)
  • [369. Plus One Linked List](369. Plus One Linked List.md)
  • [370. Range Addition](370. Range Addition.md)
  • [371. Sum of Two Integers](371. Sum of Two Integers.md)
  • [372. Super Pow](372. Super Pow.md)
  • [373. Find K Pairs with Smallest Sums](373. Find K Pairs with Smallest Sums.md)
  • [374. Guess Number Higher or Lower](374. Guess Number Higher or Lower.md)
  • [375. Guess Number Higher or Lower II](375. Guess Number Higher or Lower II.md)
  • [376. Wiggle Subsequence](376. Wiggle Subsequence.md)
  • [377. Combination Sum IV](377. Combination Sum IV.md)
  • [378. Kth Smallest Element in a Sorted Matrix](378. Kth Smallest Element in a Sorted Matrix.md)
  • [379. Design Phone Directory](379. Design Phone Directory.md)
  • [380. Insert Delete GetRandom O(1)](380. Insert Delete GetRandom O"1".md)
  • [381. Insert Delete GetRandom O(1) - Duplicates allowed](381. Insert Delete GetRandom O"1" - Duplicates allowed.md)
  • [382. Linked List Random Node](382. Linked List Random Node.md)
  • [383. Ransom Note](383. Ransom Note.md)
  • [384. Shuffle an Array](384. Shuffle an Array.md)
  • [385. Mini Parser](385. Mini Parser.md)
  • [386. Lexicographical Numbers](386. Lexicographical Numbers.md)
  • [387. First Unique Character in a String](387. First Unique Character in a String.md)
  • [388. Longest Absolute File Path](388. Longest Absolute File Path.md)
  • [389. Find the Difference](389. Find the Difference.md)
  • [390. Elimination Game](390. Elimination Game.md)
  • [391. Perfect Rectangle](391. Perfect Rectangle.md)
  • [392. Is Subsequence](392. Is Subsequence.md)
  • [393. UTF-8 Validation](393. UTF-8 Validation.md)
  • [394. Decode String](394. Decode String.md)
  • [395. Longest Substring with At Least K Repeating Characters](395. Longest Substring with At Least K Repeating Characters.md)
  • [396. Rotate Function](396. Rotate Function.md)
  • [397. Integer Replacement](397. Integer Replacement.md)
  • [398. Random Pick Index](398. Random Pick Index.md)
  • [399. Evaluate Division](399. Evaluate Division.md)
  • [400. Nth Digit](400. Nth Digit.md)
  • [401. Binary Watch](401. Binary Watch.md)
  • [402. Remove K Digits](402. Remove K Digits.md)
  • [403. Frog Jump](403. Frog Jump.md)
  • [404. Sum of Left Leaves](404. Sum of Left Leaves.md)
  • [405. Convert a Number to Hexadecimal](405. Convert a Number to Hexadecimal.md)
  • [406. Queue Reconstruction by Height](406. Queue Reconstruction by Height.md)
  • [407. Trapping Rain Water II](407. Trapping Rain Water II.md)
  • [408. Valid Word Abbreviation](408. Valid Word Abbreviation.md)
  • [409. Longest Palindrome](409. Longest Palindrome.md)
  • [410. Split Array Largest Sum](410. Split Array Largest Sum.md)
  • [411. Minimum Unique Word Abbreviation](411. Minimum Unique Word Abbreviation.md)
  • [412. Fizz Buzz](412. Fizz Buzz.md)
  • [413. Arithmetic Slices](413. Arithmetic Slices.md)
  • [414. Third Maximum Number](414. Third Maximum Number.md)
  • [415. Add Strings](415. Add Strings.md)
  • [416. Partition Equal Subset Sum](416. Partition Equal Subset Sum.md)
  • [417. Pacific Atlantic Water Flow](417. Pacific Atlantic Water Flow.md)
  • [418. Sentence Screen Fitting](418. Sentence Screen Fitting.md)
  • [419. Battleships in a Board](419. Battleships in a Board.md)
  • [420. Strong Password Checker](420. Strong Password Checker.md)
  • [421. Maximum XOR of Two Numbers in an Array](421. Maximum XOR of Two Numbers in an Array.md)
  • [422. Valid Word Square](422. Valid Word Square.md)
  • [423. Reconstruct Original Digits from English](423. Reconstruct Original Digits from English.md)
  • [424. Longest Repeating Character Replacement](424. Longest Repeating Character Replacement.md)
  • [425. Word Squares](425. Word Squares.md)
  • [432. All Oone Data Structure](432. All Oone Data Structure.md)
  • [433. Minimum Genetic Mutation](433. Minimum Genetic Mutation.md)
  • [434. Number of Segments in a String](434. Number of Segments in a String.md)
  • [435. Non-overlapping Intervals](435. Non-overlapping Intervals.md)
  • [436. Find Right Interval](436. Find Right Interval.md)
  • [437. Path Sum III](437. Path Sum III.md)
  • [438. Find All Anagrams in a String](438. Find All Anagrams in a String.md)
  • [439. Ternary Expression Parser](439. Ternary Expression Parser.md)
  • [440. K-th Smallest in Lexicographical Order](440. K-th Smallest in Lexicographical Order.md)
  • [441. Arranging Coins](441. Arranging Coins.md)
  • [442. Find All Duplicates in an Array](442. Find All Duplicates in an Array.md)
  • [443. String Compression](443. String Compression.md)
  • [444. Sequence Reconstruction](444. Sequence Reconstruction.md)
  • [445. Add Two Numbers II](445. Add Two Numbers II.md)
  • [446. Arithmetic Slices II - Subsequence](446. Arithmetic Slices II - Subsequence.md)
  • [447. Number of Boomerangs](447. Number of Boomerangs.md)
  • [448. Find All Numbers Disappeared in an Array](448. Find All Numbers Disappeared in an Array.md)
  • [449. Serialize and Deserialize BST](449. Serialize and Deserialize BST.md)
  • [450. Delete Node in a BST](450. Delete Node in a BST.md)
  • [451. Sort Characters By Frequency](451. Sort Characters By Frequency.md)
  • [452. Minimum Number of Arrows to Burst Balloons](452. Minimum Number of Arrows to Burst Balloons.md)
  • [453. Minimum Moves to Equal Array Elements](453. Minimum Moves to Equal Array Elements.md)
  • [454. 4Sum II](454. 4Sum II.md)
  • [455. Assign Cookies](455. Assign Cookies.md)
  • [456. 132 Pattern](456. 132 Pattern.md)
  • [457. Circular Array Loop](457. Circular Array Loop.md)
  • [458. Poor Pigs](458. Poor Pigs.md)
  • [459. Repeated Substring Pattern](459. Repeated Substring Pattern.md)
  • [460. LFU Cache](460. LFU Cache.md)
  • [461. Hamming Distance](461. Hamming Distance.md)
  • [462. Minimum Moves to Equal Array Elements II](462. Minimum Moves to Equal Array Elements II.md)
  • [463. Island Perimeter](463. Island Perimeter.md)
  • [464. Can I Win](464. Can I Win.md)
  • [465. Optimal Account Balancing](465. Optimal Account Balancing.md)
  • [466. Count The Repetitions](466. Count The Repetitions.md)
  • [467. Unique Substrings in Wraparound String](467. Unique Substrings in Wraparound String.md)
  • [468. Validate IP Address](468. Validate IP Address.md)
  • [469. Convex Polygon](469. Convex Polygon.md)
  • [471. Encode String with Shortest Length](471. Encode String with Shortest Length.md)
  • [472. Concatenated Words](472. Concatenated Words.md)
  • [473. Matchsticks to Square](473. Matchsticks to Square.md)
  • [474. Ones and Zeroes](474. Ones and Zeroes.md)
  • [475. Heaters](475. Heaters.md)
  • [476. Number Complement](476. Number Complement.md)
  • [477. Total Hamming Distance](477. Total Hamming Distance.md)
  • [479. Largest Palindrome Product](479. Largest Palindrome Product.md)
  • [480. Sliding Window Median](480. Sliding Window Median.md)
  • [481. Magical String](481. Magical String.md)
  • [482. License Key Formatting](482. License Key Formatting.md)
  • [483. Smallest Good Base](483. Smallest Good Base.md)
  • [484. Find Permutation](484. Find Permutation.md)
  • [485. Max Consecutive Ones](485. Max Consecutive Ones.md)
  • [486. Predict the Winner](486. Predict the Winner.md)
  • [487. Max Consecutive Ones II](487. Max Consecutive Ones II.md)
  • [488. Zuma Game](488. Zuma Game.md)
  • [490. The Maze](490. The Maze.md)
  • [491. Increasing Subsequences](491. Increasing Subsequences.md)
  • [492. Construct the Rectangle](492. Construct the Rectangle.md)
  • [493. Reverse Pairs](493. Reverse Pairs.md)
  • [494. Target Sum](494. Target Sum.md)
  • [495. Teemo Attacking](495. Teemo Attacking.md)
  • [496. Next Greater Element I](496. Next Greater Element I.md)
  • [498. Diagonal Traverse](498. Diagonal Traverse.md)
  • [499. The Maze III](499. The Maze III.md)
  • [500. Keyboard Row](500. Keyboard Row.md)
  • [501. Find Mode in Binary Search Tree](501. Find Mode in Binary Search Tree.md)
  • [502. IPO](502. IPO.md)
  • [503. Next Greater Element II](503. Next Greater Element II.md)
  • [504. Base 7](504. Base 7.md)
  • [505. The Maze II](505. The Maze II.md)
  • [506. Relative Ranks](506. Relative Ranks.md)
  • [507. Perfect Number](507. Perfect Number.md)
  • [508. Most Frequent Subtree Sum](508. Most Frequent Subtree Sum.md)
  • [513. Find Bottom Left Tree Value](513. Find Bottom Left Tree Value.md)
  • [514. Freedom Trail](514. Freedom Trail.md)
  • [515. Find Largest Value in Each Tree Row](515. Find Largest Value in Each Tree Row.md)
  • [516. Longest Palindromic Subsequence](516. Longest Palindromic Subsequence.md)
  • [517. Super Washing Machines](517. Super Washing Machines.md)
  • [518. Coin Change 2](518. Coin Change 2.md)
  • [520. Detect Capital](520. Detect Capital.md)
  • [521. Longest Uncommon Subsequence I ](521. Longest Uncommon Subsequence I .md)
  • [522. Longest Uncommon Subsequence II](522. Longest Uncommon Subsequence II.md)
  • [523. Continuous Subarray Sum](523. Continuous Subarray Sum.md)
  • [524. Longest Word in Dictionary through Deleting](524. Longest Word in Dictionary through Deleting.md)
  • [525. Contiguous Array](525. Contiguous Array.md)
  • [526. Beautiful Arrangement](526. Beautiful Arrangement.md)
  • [527. Word Abbreviation](527. Word Abbreviation.md)
  • [529. Minesweeper](529. Minesweeper.md)
  • [530. Minimum Absolute Difference in BST](530. Minimum Absolute Difference in BST.md)
  • [531. Lonely Pixel I](531. Lonely Pixel I.md)
  • [532. K-diff Pairs in an Array](532. K-diff Pairs in an Array.md)
  • [533. Lonely Pixel II](533. Lonely Pixel II.md)
  • [535. Encode and Decode TinyURL](535. Encode and Decode TinyURL.md)
  • [536. Construct Binary Tree from String](536. Construct Binary Tree from String.md)
  • [537. Complex Number Multiplication](537. Complex Number Multiplication.md)
  • [538. Convert BST to Greater Tree](538. Convert BST to Greater Tree.md)
  • [539. Minimum Time Difference](539. Minimum Time Difference.md)
  • [540. Single Element in a Sorted Array](540. Single Element in a Sorted Array.md)
  • [541. Reverse String II](541. Reverse String II.md)
  • [542. 01 Matrix](542. 01 Matrix.md)
  • [543. Diameter of Binary Tree](543. Diameter of Binary Tree.md)
  • [544. Output Contest Matches](544. Output Contest Matches.md)
  • [545. Boundary of Binary Tree](545. Boundary of Binary Tree.md)
  • [546. Remove Boxes](546. Remove Boxes.md)
  • [547. Friend Circles](547. Friend Circles.md)
  • [548. Split Array with Equal Sum](548. Split Array with Equal Sum.md)
  • [549. Binary Tree Longest Consecutive Sequence II](549. Binary Tree Longest Consecutive Sequence II.md)
  • [551. Student Attendance Record I](551. Student Attendance Record I.md)
  • [552. Student Attendance Record II](552. Student Attendance Record II.md)
  • [553. Optimal Division](553. Optimal Division.md)
  • [554. Brick Wall](554. Brick Wall.md)
  • [555. Split Concatenated Strings](555. Split Concatenated Strings.md)
  • [556. Next Greater Element III](556. Next Greater Element III.md)
  • [557. Reverse Words in a String III](557. Reverse Words in a String III.md)
  • [560. Subarray Sum Equals K](560. Subarray Sum Equals K.md)
  • [561. Array Partition I](561. Array Partition I.md)
  • [562. Longest Line of Consecutive One in Matrix](562. Longest Line of Consecutive One in Matrix.md)
  • [563. Binary Tree Tilt](563. Binary Tree Tilt.md)
  • [564. Find the Closest Palindrome](564. Find the Closest Palindrome.md)
  • [565. Array Nesting](565. Array Nesting.md)
  • [566. Reshape the Matrix](566. Reshape the Matrix.md)
  • [567. Permutation in String](567. Permutation in String.md)
  • [568. Maximum Vacation Days](568. Maximum Vacation Days.md)
  • [569. Median Employee Salary](569. Median Employee Salary.md)
  • [570. Managers with at Least 5 Direct Reports](570. Managers with at Least 5 Direct Reports.md)
  • [571. Find Median Given Frequency of Numbers](571. Find Median Given Frequency of Numbers.md)
  • [572. Subtree of Another Tree](572. Subtree of Another Tree.md)
  • [573. Squirrel Simulation](573. Squirrel Simulation.md)
  • [574. Winning Candidate](574. Winning Candidate.md)
  • [575. Distribute Candies](575. Distribute Candies.md)
  • [576. Out of Boundary Paths](576. Out of Boundary Paths.md)
  • [577. Employee Bonus](577. Employee Bonus.md)
  • [578. Get Highest Answer Rate Question](578. Get Highest Answer Rate Question.md)
  • [579. Find Cumulative Salary of an Employee](579. Find Cumulative Salary of an Employee.md)
  • [580. Count Student Number in Departments](580. Count Student Number in Departments.md)
  • [581. Shortest Unsorted Continuous Subarray](581. Shortest Unsorted Continuous Subarray.md)
  • [582. Kill Process](582. Kill Process.md)
  • [583. Delete Operation for Two Strings](583. Delete Operation for Two Strings.md)
  • [584. Find Customer Referee](584. Find Customer Referee.md)
  • [585. Investments in 2016](585. Investments in 2016.md)
  • [586. Customer Placing the Largest Number of Orders](586. Customer Placing the Largest Number of Orders.md)
  • [587. Erect the Fence](587. Erect the Fence.md)
  • [588. Design In-Memory File System](588. Design In-Memory File System.md)
  • [591. Tag Validator](591. Tag Validator.md)
  • [592. Fraction Addition and Subtraction](592. Fraction Addition and Subtraction.md)
  • [593. Valid Square](593. Valid Square.md)
  • [594. Longest Harmonious Subsequence](594. Longest Harmonious Subsequence.md)
  • [595. Big Countries](595. Big Countries.md)
  • [596. Classes More Than 5 Students](596. Classes More Than 5 Students.md)
  • [597. Friend Requests I: Overall Acceptance Rate](597. Friend Requests I: Overall Acceptance Rate.md)
  • [598. Range Addition II](598. Range Addition II.md)
  • [599. Minimum Index Sum of Two Lists](599. Minimum Index Sum of Two Lists.md)
  • [600. Non-negative Integers without Consecutive Ones](600. Non-negative Integers without Consecutive Ones.md)
  • [601. Human Traffic of Stadium](601. Human Traffic of Stadium.md)
  • [602. Friend Requests II: Who Has the Most Friends](602. Friend Requests II: Who Has the Most Friends.md)
  • [603. Consecutive Available Seats](603. Consecutive Available Seats.md)
  • [604. Design Compressed String Iterator](604. Design Compressed String Iterator.md)
  • [605. Can Place Flowers](605. Can Place Flowers.md)
  • [606. Construct String from Binary Tree](606. Construct String from Binary Tree.md)
  • [607. Sales Person](607. Sales Person.md)
  • [608. Tree Node](608. Tree Node.md)
  • [609. Find Duplicate File in System](609. Find Duplicate File in System.md)
  • [610. Triangle Judgement](610. Triangle Judgement.md)
  • [611. Valid Triangle Number](611. Valid Triangle Number.md)
  • [612. Shortest Distance in a Plane](612. Shortest Distance in a Plane.md)
  • [613. Shortest Distance in a Line](613. Shortest Distance in a Line.md)
  • [614. Second Degree Follower](614. Second Degree Follower.md)
  • [615. Average Salary: Departments VS Company](615. Average Salary: Departments VS Company.md)
  • [616. Add Bold Tag in String](616. Add Bold Tag in String.md)
  • [617. Merge Two Binary Trees](617. Merge Two Binary Trees.md)
  • [618. Students Report By Geography](618. Students Report By Geography.md)
  • [619. Biggest Single Number](619. Biggest Single Number.md)
  • [620. Not Boring Movies](620. Not Boring Movies.md)
  • [621. Task Scheduler](621. Task Scheduler.md)
  • [623. Add One Row to Tree](623. Add One Row to Tree.md)
  • [624. Maximum Distance in Arrays](624. Maximum Distance in Arrays.md)
  • [625. Minimum Factorization](625. Minimum Factorization.md)
  • [626. Exchange Seats](626. Exchange Seats.md)
  • [627. Swap Salary](627. Swap Salary.md)
  • [628. Maximum Product of Three Numbers](628. Maximum Product of Three Numbers.md)
  • [629. K Inverse Pairs Array](629. K Inverse Pairs Array.md)
  • [630. Course Schedule III](630. Course Schedule III.md)
  • [631. Design Excel Sum Formula](631. Design Excel Sum Formula.md)
  • [632. Smallest Range](632. Smallest Range.md)
  • [633. Sum of Square Numbers](633. Sum of Square Numbers.md)
  • [634. Find the Derangement of An Array](634. Find the Derangement of An Array.md)
  • [635. Design Log Storage System](635. Design Log Storage System.md)
  • [636. Exclusive Time of Functions](636. Exclusive Time of Functions.md)
  • [637. Average of Levels in Binary Tree](637. Average of Levels in Binary Tree.md)
  • [638. Shopping Offers](638. Shopping Offers.md)
  • [639. Decode Ways II](639. Decode Ways II.md)
  • [640. Solve the Equation](640. Solve the Equation.md)
  • [642. Design Search Autocomplete System](642. Design Search Autocomplete System.md)
  • [643. Maximum Average Subarray I](643. Maximum Average Subarray I.md)
  • [644. Maximum Average Subarray II](644. Maximum Average Subarray II.md)
  • [645. Set Mismatch](645. Set Mismatch.md)
  • [646. Maximum Length of Pair Chain](646. Maximum Length of Pair Chain.md)
  • [647. Palindromic Substrings](647. Palindromic Substrings.md)
  • [648. Replace Words](648. Replace Words.md)
  • [649. Dota2 Senate](649. Dota2 Senate.md)
  • [650. 2 Keys Keyboard](650. 2 Keys Keyboard.md)
  • [651. 4 Keys Keyboard](651. 4 Keys Keyboard.md)
  • [652. Find Duplicate Subtrees](652. Find Duplicate Subtrees.md)
  • [653. Two Sum IV - Input is a BST](653. Two Sum IV - Input is a BST.md)
  • [654. Maximum Binary Tree](654. Maximum Binary Tree.md)
  • [655. Print Binary Tree](655. Print Binary Tree.md)
  • [656. Coin Path](656. Coin Path.md)
  • [657. Robot Return to Origin](657. Robot Return to Origin.md)
  • [658. Find K Closest Elements](658. Find K Closest Elements.md)
  • [659. Split Array into Consecutive Subsequences](659. Split Array into Consecutive Subsequences.md)
  • [660. Remove 9](660. Remove 9.md)
  • [661. Image Smoother](661. Image Smoother.md)
  • [662. Maximum Width of Binary Tree](662. Maximum Width of Binary Tree.md)
  • [663. Equal Tree Partition](663. Equal Tree Partition.md)
  • [664. Strange Printer](664. Strange Printer.md)
  • [665. Non-decreasing Array](665. Non-decreasing Array.md)
  • [666. Path Sum IV](666. Path Sum IV.md)
  • [667. Beautiful Arrangement II](667. Beautiful Arrangement II.md)
  • [668. Kth Smallest Number in Multiplication Table](668. Kth Smallest Number in Multiplication Table.md)
  • [669. Trim a Binary Search Tree](669. Trim a Binary Search Tree.md)
  • [670. Maximum Swap](670. Maximum Swap.md)
  • [671. Second Minimum Node In a Binary Tree](671. Second Minimum Node In a Binary Tree.md)
  • [672. Bulb Switcher II](672. Bulb Switcher II.md)
  • [673. Number of Longest Increasing Subsequence](673. Number of Longest Increasing Subsequence.md)
  • [674. Longest Continuous Increasing Subsequence](674. Longest Continuous Increasing Subsequence.md)
  • [675. Cut Off Trees for Golf Event](675. Cut Off Trees for Golf Event.md)
  • [676. Implement Magic Dictionary](676. Implement Magic Dictionary.md)
  • [677. Map Sum Pairs](677. Map Sum Pairs.md)
  • [678. Valid Parenthesis String](678. Valid Parenthesis String.md)
  • [679. 24 Game](679. 24 Game.md)
  • [680. Valid Palindrome II](680. Valid Palindrome II.md)
  • [681. Next Closest Time](681. Next Closest Time.md)
  • [682. Baseball Game](682. Baseball Game.md)
  • [683. K Empty Slots](683. K Empty Slots.md)
  • [684. Redundant Connection](684. Redundant Connection.md)
  • [685. Redundant Connection II](685. Redundant Connection II.md)
  • [686. Repeated String Match](686. Repeated String Match.md)
  • [687. Longest Univalue Path](687. Longest Univalue Path.md)
  • [688. Knight Probability in Chessboard](688. Knight Probability in Chessboard.md)
  • [689. Maximum Sum of 3 Non-Overlapping Subarrays](689. Maximum Sum of 3 Non-Overlapping Subarrays.md)
  • [690. Employee Importance](690. Employee Importance.md)
  • [691. Stickers to Spell Word](691. Stickers to Spell Word.md)
  • [692. Top K Frequent Words](692. Top K Frequent Words.md)
  • [693. Binary Number with Alternating Bits](693. Binary Number with Alternating Bits.md)
  • [694. Number of Distinct Islands](694. Number of Distinct Islands.md)
  • [695. Max Area of Island](695. Max Area of Island.md)
  • [696. Count Binary Substrings](696. Count Binary Substrings.md)
  • [697. Degree of an Array](697. Degree of an Array.md)
  • [698. Partition to K Equal Sum Subsets](698. Partition to K Equal Sum Subsets.md)
  • [699. Falling Squares](699. Falling Squares.md)
  • [711. Number of Distinct Islands II](711. Number of Distinct Islands II.md)
  • [712. Minimum ASCII Delete Sum for Two Strings](712. Minimum ASCII Delete Sum for Two Strings.md)
  • [713. Subarray Product Less Than K](713. Subarray Product Less Than K.md)
  • [714. Best Time to Buy and Sell Stock with Transaction Fee](714. Best Time to Buy and Sell Stock with Transaction Fee.md)
  • [715. Range Module](715. Range Module.md)
  • [716. Max Stack](716. Max Stack.md)
  • [717. 1-bit and 2-bit Characters](717. 1-bit and 2-bit Characters.md)
  • [718. Maximum Length of Repeated Subarray](718. Maximum Length of Repeated Subarray.md)
  • [719. Find K-th Smallest Pair Distance](719. Find K-th Smallest Pair Distance.md)
  • [720. Longest Word in Dictionary](720. Longest Word in Dictionary.md)
  • [721. Accounts Merge](721. Accounts Merge.md)
  • [722. Remove Comments](722. Remove Comments.md)
  • [723. Candy Crush](723. Candy Crush.md)
  • [724. Find Pivot Index](724. Find Pivot Index.md)
  • [725. Split Linked List in Parts](725. Split Linked List in Parts.md)
  • [726. Number of Atoms](726. Number of Atoms.md)
  • [727. Minimum Window Subsequence](727. Minimum Window Subsequence.md)
  • [728. Self Dividing Numbers](728. Self Dividing Numbers.md)
  • [729. My Calendar I](729. My Calendar I.md)
  • [730. Count Different Palindromic Subsequences](730. Count Different Palindromic Subsequences.md)
  • [731. My Calendar II](731. My Calendar II.md)
  • [732. My Calendar III](732. My Calendar III.md)
  • [733. Flood Fill](733. Flood Fill.md)
  • [734. Sentence Similarity](734. Sentence Similarity.md)
  • [735. Asteroid Collision](735. Asteroid Collision.md)
  • [736. Parse Lisp Expression](736. Parse Lisp Expression.md)
  • [737. Sentence Similarity II](737. Sentence Similarity II.md)
  • [738. Monotone Increasing Digits](738. Monotone Increasing Digits.md)
  • [739. Daily Temperatures](739. Daily Temperatures.md)
  • [740. Delete and Earn](740. Delete and Earn.md)
  • [741. Cherry Pickup](741. Cherry Pickup.md)
  • [742. To Lower Case](742. To Lower Case.md)
  • [743. Closest Leaf in a Binary Tree](743. Closest Leaf in a Binary Tree.md)
  • [744. Network Delay Time](744. Network Delay Time.md)
  • [745. Find Smallest Letter Greater Than Target](745. Find Smallest Letter Greater Than Target.md)
  • [746. Prefix and Suffix Search](746. Prefix and Suffix Search.md)
  • [747. Min Cost Climbing Stairs](747. Min Cost Climbing Stairs.md)
  • [748. Largest Number At Least Twice of Others](748. Largest Number At Least Twice of Others.md)
  • [749. Shortest Completing Word](749. Shortest Completing Word.md)
  • [750. Contain Virus](750. Contain Virus.md)
  • [751. Number Of Corner Rectangles](751. Number Of Corner Rectangles.md)
  • [752. IP to CIDR](752. IP to CIDR.md)
  • [753. Open the Lock](753. Open the Lock.md)
  • [754. Cracking the Safe](754. Cracking the Safe.md)
  • [755. Reach a Number](755. Reach a Number.md)
  • [756. Pour Water](756. Pour Water.md)
  • [757. Pyramid Transition Matrix](757. Pyramid Transition Matrix.md)
  • [758. Convert Binary Search Tree to Sorted Doubly Linked List](758. Convert Binary Search Tree to Sorted Doubly Linked List.md)
  • [759. Set Intersection Size At Least Two](759. Set Intersection Size At Least Two.md)
  • [760. Bold Words in String](760. Bold Words in String.md)
  • [761. Employee Free Time](761. Employee Free Time.md)
  • [762. Find Anagram Mappings](762. Find Anagram Mappings.md)
  • [763. Special Binary String](763. Special Binary String.md)
  • [764. N-ary Tree Level Order Traversal](764. N-ary Tree Level Order Traversal.md)
  • [765. Serialize and Deserialize N-ary Tree](765. Serialize and Deserialize N-ary Tree.md)
  • [766. Flatten a Multilevel Doubly Linked List](766. Flatten a Multilevel Doubly Linked List.md)
  • [767. Prime Number of Set Bits in Binary Representation](767. Prime Number of Set Bits in Binary Representation.md)
  • [768. Partition Labels](768. Partition Labels.md)
  • [769. Largest Plus Sign](769. Largest Plus Sign.md)
  • [770. Couples Holding Hands](770. Couples Holding Hands.md)
  • [771. Encode N-ary Tree to Binary Tree](771. Encode N-ary Tree to Binary Tree.md)
  • [772. Construct Quad Tree](772. Construct Quad Tree.md)
  • [773. Quad Tree Intersection](773. Quad Tree Intersection.md)
  • [774. Maximum Depth of N-ary Tree](774. Maximum Depth of N-ary Tree.md)
  • [775. N-ary Tree Preorder Traversal](775. N-ary Tree Preorder Traversal.md)
  • [776. N-ary Tree Postorder Traversal](776. N-ary Tree Postorder Traversal.md)
  • [777. Toeplitz Matrix](777. Toeplitz Matrix.md)
  • [778. Reorganize String](778. Reorganize String.md)
  • [779. Max Chunks To Make Sorted II](779. Max Chunks To Make Sorted II.md)
  • [780. Max Chunks To Make Sorted](780. Max Chunks To Make Sorted.md)
  • [781. Basic Calculator IV](781. Basic Calculator IV.md)
  • [782. Jewels and Stones](782. Jewels and Stones.md)
  • [783. Search in a Binary Search Tree](783. Search in a Binary Search Tree.md)
  • [784. Insert into a Binary Search Tree](784. Insert into a Binary Search Tree.md)
  • [785. Basic Calculator III](785. Basic Calculator III.md)
  • [786. Search in a Sorted Array of Unknown Size](786. Search in a Sorted Array of Unknown Size.md)
  • [787. Sliding Puzzle](787. Sliding Puzzle.md)
  • [788. Minimize Max Distance to Gas Station](788. Minimize Max Distance to Gas Station.md)
  • [789. Kth Largest Element in a Stream](789. Kth Largest Element in a Stream.md)
  • [790. Global and Local Inversions](790. Global and Local Inversions.md)
  • [791. Split BST](791. Split BST.md)
  • [792. Binary Search](792. Binary Search.md)
  • [793. Swap Adjacent in LR String](793. Swap Adjacent in LR String.md)
  • [794. Swim in Rising Water](794. Swim in Rising Water.md)
  • [795. K-th Symbol in Grammar](795. K-th Symbol in Grammar.md)
  • [796. Reaching Points](796. Reaching Points.md)
  • [797. Rabbits in Forest](797. Rabbits in Forest.md)
  • [798. Transform to Chessboard](798. Transform to Chessboard.md)
  • [799. Minimum Distance Between BST Nodes](799. Minimum Distance Between BST Nodes.md)
  • [800. Letter Case Permutation](800. Letter Case Permutation.md)
  • [801. Is Graph Bipartite?](801. Is Graph Bipartite?.md)
  • [802. K-th Smallest Prime Fraction](802. K-th Smallest Prime Fraction.md)
  • [803. Cheapest Flights Within K Stops](803. Cheapest Flights Within K Stops.md)
  • [804. Rotated Digits](804. Rotated Digits.md)
  • [805. Escape The Ghosts](805. Escape The Ghosts.md)
  • [806. Domino and Tromino Tiling](806. Domino and Tromino Tiling.md)
  • [807. Custom Sort String](807. Custom Sort String.md)
  • [808. Number of Matching Subsequences](808. Number of Matching Subsequences.md)
  • [809. Preimage Size of Factorial Zeroes Function](809. Preimage Size of Factorial Zeroes Function.md)
  • [810. Valid Tic-Tac-Toe State](810. Valid Tic-Tac-Toe State.md)
  • [811. Number of Subarrays with Bounded Maximum](811. Number of Subarrays with Bounded Maximum.md)
  • [812. Rotate String](812. Rotate String.md)
  • [813. All Paths From Source to Target](813. All Paths From Source to Target.md)
  • [814. Smallest Rotation with Highest Score](814. Smallest Rotation with Highest Score.md)
  • [815. Champagne Tower](815. Champagne Tower.md)
  • [816. Design HashSet](816. Design HashSet.md)
  • [817. Design HashMap](817. Design HashMap.md)
  • [818. Similar RGB Color](818. Similar RGB Color.md)
  • [819. Minimum Swaps To Make Sequences Increasing](819. Minimum Swaps To Make Sequences Increasing.md)
  • [820. Find Eventual Safe States](820. Find Eventual Safe States.md)
  • [821. Bricks Falling When Hit](821. Bricks Falling When Hit.md)
  • [822. Unique Morse Code Words](822. Unique Morse Code Words.md)
  • [823. Split Array With Same Average](823. Split Array With Same Average.md)
  • [824. Number of Lines To Write String](824. Number of Lines To Write String.md)
  • [825. Max Increase to Keep City Skyline](825. Max Increase to Keep City Skyline.md)
  • [826. Soup Servings](826. Soup Servings.md)
  • [827. Expressive Words](827. Expressive Words.md)
  • [828. Chalkboard XOR Game](828. Chalkboard XOR Game.md)
  • [829. Subdomain Visit Count](829. Subdomain Visit Count.md)
  • [830. Largest Triangle Area](830. Largest Triangle Area.md)
  • [831. Largest Sum of Averages](831. Largest Sum of Averages.md)
  • [832. Binary Tree Pruning](832. Binary Tree Pruning.md)
  • [833. Bus Routes](833. Bus Routes.md)
  • [834. Ambiguous Coordinates](834. Ambiguous Coordinates.md)
  • [835. Linked List Components](835. Linked List Components.md)
  • [836. Race Car](836. Race Car.md)
  • [837. Most Common Word](837. Most Common Word.md)
  • [838. Design Linked List](838. Design Linked List.md)
  • [839. Short Encoding of Words](839. Short Encoding of Words.md)
  • [841. Shortest Distance to a Character](841. Shortest Distance to a Character.md)
  • [842. Card Flipping Game](842. Card Flipping Game.md)
  • [843. Binary Trees With Factors](843. Binary Trees With Factors.md)
  • [850. Insert into a Cyclic Sorted List](850. Insert into a Cyclic Sorted List.md)
  • [851. Goat Latin](851. Goat Latin.md)
  • [852. Friends Of Appropriate Ages](852. Friends Of Appropriate Ages.md)
  • [853. Most Profit Assigning Work](853. Most Profit Assigning Work.md)
  • [854. Making A Large Island](854. Making A Large Island.md)
  • [855. Unique Letter String](855. Unique Letter String.md)
  • [856. Consecutive Numbers Sum](856. Consecutive Numbers Sum.md)
  • [857. Positions of Large Groups](857. Positions of Large Groups.md)
  • [858. Masking Personal Information](858. Masking Personal Information.md)
  • [859. Design Circular Deque](859. Design Circular Deque.md)
  • [860. Design Circular Queue](860. Design Circular Queue.md)
  • [861. Flipping an Image](861. Flipping an Image.md)
  • [862. Find And Replace in String](862. Find And Replace in String.md)
  • [863. Sum of Distances in Tree](863. Sum of Distances in Tree.md)
  • [864. Image Overlap](864. Image Overlap.md)
  • [865. Robot Room Cleaner](865. Robot Room Cleaner.md)
  • [866. Rectangle Overlap](866. Rectangle Overlap.md)
  • [867. New 21 Game](867. New 21 Game.md)
  • [868. Push Dominoes](868. Push Dominoes.md)
  • [869. Similar String Groups](869. Similar String Groups.md)
  • [870. Magic Squares In Grid](870. Magic Squares In Grid.md)
  • [871. Keys and Rooms](871. Keys and Rooms.md)
  • [872. Split Array into Fibonacci Sequence](872. Split Array into Fibonacci Sequence.md)
  • [873. Guess the Word](873. Guess the Word.md)
  • [874. Backspace String Compare](874. Backspace String Compare.md)
  • [875. Longest Mountain in Array](875. Longest Mountain in Array.md)
  • [876. Hand of Straights](876. Hand of Straights.md)
  • [877. Shortest Path Visiting All Nodes](877. Shortest Path Visiting All Nodes.md)
  • [878. Shifting Letters](878. Shifting Letters.md)
  • [879. Maximize Distance to Closest Person](879. Maximize Distance to Closest Person.md)
  • [880. Rectangle Area II](880. Rectangle Area II.md)
  • [881. Loud and Rich](881. Loud and Rich.md)
  • [882. Peak Index in a Mountain Array](882. Peak Index in a Mountain Array.md)
  • [883. Car Fleet](883. Car Fleet.md)
  • [884. K-Similar Strings](884. K-Similar Strings.md)
  • [885. Exam Room](885. Exam Room.md)
  • [886. Score of Parentheses](886. Score of Parentheses.md)
  • [887. Minimum Cost to Hire K Workers](887. Minimum Cost to Hire K Workers.md)
  • [888. Mirror Reflection](888. Mirror Reflection.md)
  • [889. Buddy Strings](889. Buddy Strings.md)
  • [890. Lemonade Change](890. Lemonade Change.md)
  • [891. Score After Flipping Matrix](891. Score After Flipping Matrix.md)
  • [892. Shortest Subarray with Sum at Least K](892. Shortest Subarray with Sum at Least K.md)
  • [893. All Nodes Distance K in Binary Tree](893. All Nodes Distance K in Binary Tree.md)
  • [894. Random Pick with Blacklist](894. Random Pick with Blacklist.md)
  • [895. Shortest Path to Get All Keys](895. Shortest Path to Get All Keys.md)
  • [896. Smallest Subtree with all the Deepest Nodes](896. Smallest Subtree with all the Deepest Nodes.md)
  • [897. Prime Palindrome](897. Prime Palindrome.md)
  • [898. Transpose Matrix](898. Transpose Matrix.md)
  • [899. Binary Gap](899. Binary Gap.md)
  • [900. Reordered Power of 2](900. Reordered Power of 2.md)
  • [901. Advantage Shuffle](901. Advantage Shuffle.md)
  • [902. Minimum Number of Refueling Stops](902. Minimum Number of Refueling Stops.md)
  • [903. Implement Rand10() Using Rand7()](903. Implement Rand10"" Using Rand7"".md)
  • [904. Leaf-Similar Trees](904. Leaf-Similar Trees.md)
  • [905. Length of Longest Fibonacci Subsequence](905. Length of Longest Fibonacci Subsequence.md)
  • [906. Walking Robot Simulation](906. Walking Robot Simulation.md)
  • [907. Koko Eating Bananas](907. Koko Eating Bananas.md)
  • [908. Middle of the Linked List](908. Middle of the Linked List.md)
  • [909. Stone Game](909. Stone Game.md)
  • [910. Nth Magical Number](910. Nth Magical Number.md)
  • [911. Profitable Schemes](911. Profitable Schemes.md)
  • [912. Random Pick with Weight](912. Random Pick with Weight.md)
  • [913. Random Flip Matrix](913. Random Flip Matrix.md)
  • [914. Random Point in Non-overlapping Rectangles](914. Random Point in Non-overlapping Rectangles.md)
  • [915. Generate Random Point in a Circle](915. Generate Random Point in a Circle.md)
  • [916. Decoded String at Index](916. Decoded String at Index.md)
  • [917. Boats to Save People](917. Boats to Save People.md)
  • [918. Reachable Nodes In Subdivided Graph](918. Reachable Nodes In Subdivided Graph.md)
  • [919. Projection Area of 3D Shapes](919. Projection Area of 3D Shapes.md)
  • [920. Uncommon Words from Two Sentences](920. Uncommon Words from Two Sentences.md)
  • [921. Spiral Matrix III](921. Spiral Matrix III.md)
  • [922. Possible Bipartition](922. Possible Bipartition.md)
  • [923. Super Egg Drop](923. Super Egg Drop.md)
  • [924. Fair Candy Swap](924. Fair Candy Swap.md)
  • [925. Construct Binary Tree from Preorder and Postorder Traversal](925. Construct Binary Tree from Preorder and Postorder Traversal.md)
  • [926. Find and Replace Pattern](926. Find and Replace Pattern.md)
  • [927. Sum of Subsequence Widths](927. Sum of Subsequence Widths.md)
  • [928. Surface Area of 3D Shapes](928. Surface Area of 3D Shapes.md)
  • [929. Groups of Special-Equivalent Strings](929. Groups of Special-Equivalent Strings.md)
  • [930. All Possible Full Binary Trees](930. All Possible Full Binary Trees.md)
  • [931. Maximum Frequency Stack](931. Maximum Frequency Stack.md)
  • [932. Monotonic Array](932. Monotonic Array.md)
  • [933. Increasing Order Search Tree](933. Increasing Order Search Tree.md)
  • [934. Bitwise ORs of Subarrays](934. Bitwise ORs of Subarrays.md)
  • [935. Orderly Queue](935. Orderly Queue.md)
  • [936. RLE Iterator](936. RLE Iterator.md)
  • [937. Online Stock Span](937. Online Stock Span.md)
  • [938. Numbers At Most N Given Digit Set](938. Numbers At Most N Given Digit Set.md)
  • [939. Valid Permutations for DI Sequence](939. Valid Permutations for DI Sequence.md)
  • [940. Fruit Into Baskets](940. Fruit Into Baskets.md)
  • [941. Sort Array By Parity](941. Sort Array By Parity.md)
  • [942. Super Palindromes](942. Super Palindromes.md)
  • [943. Sum of Subarray Minimums](943. Sum of Subarray Minimums.md)
  • [944. Smallest Range I](944. Smallest Range I.md)
  • [945. Snakes and Ladders](945. Snakes and Ladders.md)
  • [946. Smallest Range II](946. Smallest Range II.md)
  • [947. Online Election](947. Online Election.md)
  • [949. Cat and Mouse](949. Cat and Mouse.md)
  • [950. X of a Kind in a Deck of Cards](950. X of a Kind in a Deck of Cards.md)
  • [951. Partition Array into Disjoint Intervals](951. Partition Array into Disjoint Intervals.md)
  • [952. Word Subsets](952. Word Subsets.md)
  • [953. Reverse Only Letters](953. Reverse Only Letters.md)
  • [954. Maximum Sum Circular Subarray](954. Maximum Sum Circular Subarray.md)
  • [955. Complete Binary Tree Inserter](955. Complete Binary Tree Inserter.md)
  • [956. Number of Music Playlists](956. Number of Music Playlists.md)
  • [957. Minimum Add to Make Parentheses Valid](957. Minimum Add to Make Parentheses Valid.md)
  • [958. Sort Array By Parity II](958. Sort Array By Parity II.md)
  • [959. 3Sum With Multiplicity](959. 3Sum With Multiplicity.md)
  • [960. Minimize Malware Spread](960. Minimize Malware Spread.md)
  • [961. Long Pressed Name](961. Long Pressed Name.md)
  • [962. Flip String to Monotone Increasing](962. Flip String to Monotone Increasing.md)
  • [963. Three Equal Parts](963. Three Equal Parts.md)
  • [964. Minimize Malware Spread II](964. Minimize Malware Spread II.md)
  • [965. Unique Email Addresses](965. Unique Email Addresses.md)
  • [966. Binary Subarrays With Sum](966. Binary Subarrays With Sum.md)
  • [967. Minimum Falling Path Sum](967. Minimum Falling Path Sum.md)
  • [968. Beautiful Array](968. Beautiful Array.md)

About

leetcode to solutions: https://kongpingfan.me/go-leetcode