Skip to content

KsGin/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode 代码合集

  1. Find Median Sorted Arrays
  2. Longest Palindrome SubString
  3. Zig Zag Conversuin
  4. Reverse Integer
  5. String to Int
  6. Integer Is Palindrome
  7. Regular Expression Matching
  8. Container With Most Water
  9. Integer To Roman
  10. Roman To Integer
  11. Longest Common Prefix
  12. Three Sum
  13. Three Sum Closest
  14. Letter Combinations of a Phone Number
  15. Four Sum
  16. Remove Nth From List End
  17. Valid Parentheses
  18. Merge Two Sorted Lists
  19. Generate Parentheses
  20. Merge K Sorted Lists
  21. Swap Nodes In Pairs
  22. Reverse Nodes In K-Group
  23. Remove Duplicates From Sorted Array
  24. Remove Element
  25. Implement StrStr
  26. Divide Two Integers
  27. Substring With Concatenation Of All Words
  28. Next Permutation
  29. Longest Valid Parentheses
  30. Search In Rotated Sorted Array
  31. Search for a Range
  32. Search Insert Position
  33. Valid Sudoku
  34. Sudoku Solver
  35. Count And Say
  36. Combination Sum
  37. Combination Sum II
  38. First Missing Positive
  39. Trapping Rain Water
  40. Multiply Strings
  41. Wildcard Matching
  42. Jump Game 2
  43. Permutations
  44. Permutations Two
  45. Rotate Image
  46. Group Anagrams
  47. Pow
  48. Encode and Decode TinyURL(LeetCode#535)
  49. Maximum Binary Tree(LeetCode#654)
  50. Big Countries(LeetCode#595)
  51. Hamming Distance(LeetCode#461)
  52. Judge Route Circle(LeetCode#657)
  53. Merge Two Binary Trees(LeetCode#617)
  54. Array Partition One(LeetCode#561)
  55. Swap Salary(LeetCode#627)
  56. Complex Number Multiplication(LeetCode#537)
  57. Battleships In A Board(LeetCode#419)
  58. Counting Bits(LeetCode#338)
  59. Number Complement(LeetCode#476)
  60. Keyboard Row(LeetCode#500)
  61. Reverse Words in a String III(LeetCode#557)
  62. Reverse String(LeetCode#344)
  63. Distribute Candies(LeetCode#575)
  64. Reshape The Matrix(LeetCode#566)
  65. Fizz Buzz(LeetCode#412)
  66. Trim a Binary Search Tree(LeetCode#669)
  67. Not Boring Movies(LeetCode#620)
  68. IslandPerimeter(LeetCode#463)
  69. Next Greater Element One(LeetCode#496)
  70. Average Of Levels In Binary Tree(LeetCode#637)
  71. Find Bottom Left Tree Value(LeetCode#513)
  72. Find All Duplicates In An Array(LeetCode#442)
  73. Queue Reconstruction By Height(LeetCode#406)
  74. Single Element In A Sorted Array(LeetCode#540)
  75. Longest Uncommon Subsequence I(LeetCode#521)
  76. Nim Game(LeetCode#292)
  77. Optimal Division(LeetCode#553)
  78. Beautiful Arrangement(LeetCode#526)
  79. Find Largest Value In Each Tree Row(LeetCode#515)
  80. Baseball Game(LeetCode#682)
  81. Single Number(LeetCode#136)
  82. Arithmetic Slices(LeetCode#413)
  83. Employee Importance(LeetCode#690)
  84. Map Sum Pairs(LeetCode#677)
  85. Max Consecutive Ones(LeetCode#485)
  86. Maximum Depth Of Binary Tree(LeetCode#104)
  87. Most Frequent Subtree Sum(LeetCode#508)
  88. Invert Binary Tree(LeetCode#226)
  89. Single Number Three(LeetCode#260)
  90. Max Area Of Island(LeetCode#695)
  91. Detect Capital(LeetCode#520)
  92. Binary Number With Alternating Bits(LeetCode#693)
  93. Beautiful Arrangement Two(LeetCode#667)
  94. Minimum Moves To Equal Array Elements Two(LeetCode#462)
  95. Teemo Attacking(LeetCode#495)
  96. Add Digits(LeetCode#258)
  97. Find All Numbers Disappeared In An Array(LeetCode#448)
  98. Count Binary Substrings(LeetCode#696)
  99. Sum Of Two Integers(LeetCode#371)
  100. Sort Characters By Frequency(LeetCode#451)
  101. FindTheDifference(LeetCode#389)
  102. Two Sum IV - Input is a BST(LeetCode#653)
  103. Print Binary Tree(LeetCode#655)
  104. Move Zeroes(LeetCode#283)
  105. ImplementMagicDictionary(LeetCode#676)
  106. Construct String From Binary Tree(LeetCode#606)
  107. Product Of Array Except Self(LeetCode#238)
  108. Minesweeper(LeetCode#529)
  109. ConvertBSTToGreaterTree(LeetCode#538)
  110. Friend Circles(LeetCode#547)
  111. One Bit And Two Bit Characters(LeetCode#717)
  112. Minimum ASCII Delete Sum For Two Strings(LeetCode#712)
  113. Top K Frequent Elements(LeetCode#347)
  114. Construct The Rectangle(LeetCode#492)
  115. Range Addition Two(LeetCode#598)
  116. Degree Of An Array(LeetCode#697)
  117. Bulb Switcher Two(LeetCode#672)
  118. Excel Sheet Column Number(LeetCode#171)
  119. Excel Sheet Column Title(LeetCode#168)
  120. Binary Tree Inorder Traversal(LeetCode#94)
  121. Total Hamming Distance(LeetCode#477)
  122. Minimum Moves To Equal Array Elements(LeetCode#453)
  123. Best Time To Buy And Sell Stock Two(LeetCode#122)
  124. Intersection Of Two Arrays(LeetCode#349)
  125. Maximum Length Of Pair Chain(LeetCode#646)
  126. Copy List With Random Pointer(LeetCode#138)
  127. Ransom Note(LeetCode#383)
  128. Next Greater Element Two(LeetCode#503)
  129. Sum Of Left Leaves(LeetCode#404)
  130. Replace Words(LeetCode#648)
  131. Four Sum Two(LeetCode#454)
  132. Majority Element(LeetCode#169)
  133. Binary Tree Tilt(LeetCode#563)
  134. Assign Cookies(LeetCode#455)
  135. Two Sum Two Input Array Is Sorted(LeetCode#167)
  136. Linked List Random Node(LeetCode#382)
  137. First Unique Character In A String(LeetCode#387)
  138. Minimum Absolute Difference In BST(LeetCode#530)
  139. Shuffle An Array(LeetCode#384)
  140. Delete Node In A Linked List(LeetCode#237)
  141. Same Tree(LeetCode#100)
  142. Valid Anagram(LeetCode#242)
  143. Maximum XOR Of Two Numbers In An Array(LeetCode#421)
  144. ExchangeSeats(LeetCode#626)
  145. Relative Ranks(LeetCode#506)
  146. Add One Row To Tree(LeetCode#623)
  147. Minimum Index Sum Of Two Lists(LeetCode#599)
  148. Contains Duplicate(LeetCode#217)
  149. Integer Break(LeetCode#343)
  150. Reverse Linked List(LeetCode#206)
  151. Count Numbers With Unique Digits(LeetCode#357)
  152. Brick Wall(LeetCode#554)
  153. Combination Sum Three(LeetCode#216)
  154. Diagonal Traverse(LeetCode#498)
  155. Image Smoother(LeetCode#661)
  156. Fraction Addition And Subtraction(LeetCode#592)
  157. Add Two Numbers Two(LeetCode#445)
  158. Minimum Time Difference(LeetCode#539)
  159. N-Queens Two(LeetCode#52)
  160. N-Queen One(LeetCode#51)
  161. Number Of Boomerangs(LeetCode#447)
  162. Binary Tree Preorder Traversal(LeetCode#144)
  163. Magical String(LeetCode#481)
  164. Longest Palindrome(LeetCode#409)
  165. Flood Fill(LeetCode#733)
  166. Predict The Winner(LeetCode#486)
  167. Kth Smallest Element In A Sorted Matrix(LeetCode#378)
  168. Number Of Atoms(LeetCode#726)
  169. Different Ways To Add Parentheses(LeetCode#241)
  170. Maximum Product Of Three Numbers(LeetCode#628)
  171. Maximum Product Of Word Lengths(LeetCode#318)
  172. Binary Watch(LeetCode#401)
  173. Intersection Of Two Arrays Two(LeetCode#350)
  174. Two Keys Keyboard(LeetCode#650)
  175. Diameter Of Binary Tree(LeetCode#543)
  176. Is Subsequence(LeetCode#392)
  177. Reconstruct Original Digits From English(LeetCode#423)
  178. Minimum Number Of Arrows To Burst Balloons(LeetCode#452)
  179. Missing Number(LeetCode#268)
  180. Delete Operation For Two Strings(LeetCode#583)
  181. Student Attendance Record One(LeetCode#551)
  182. Odd Even Linked List(LeetCode#328)
  183. House Robber Three(LeetCode#337)
  184. Random Pick Index(LeetCode#398)
  185. Base7(LeetCode#504)
  186. Find The Duplicate Number(LeetCode#287)
  187. Exclusive Time Of Functions(LeetCode#636)
  188. Target Sum(LeetCode#494)
  189. Reverse String Two(LeetCode#541)
  190. Longest Word in Dictionary through Deleting(LeetCode#524)
  191. Shopping Offers(LeetCode#638)
  192. Find Anagram Mappings(LeetCode#760)
  193. Self Dividing Numbers(LeetCode#728)
  194. Find Smallest Letter Greater Than Target(LeetCode#744)
  195. Partition Labels(LeetCode#763)
  196. Prime Number Of Set Bits In Binary Representation(LeetCode#762)
  197. Employee Free Time(LeetCode#759)
  198. Largest Number At Least Twice Of Others(LeetCode#747)
  199. Min Cost Climbing Stairs(LeetCode#746)
  200. Best Time To Buy And Sell Stock With Transaction Fee(LeetCode#714)
  201. Max Chunks To Make Sorted(LeetCode#769)
  202. Subsets(LeetCode#78)
  203. Convert Sorted Array To Binary Search Tree(LeetCode#108)
  204. Sliding Puzzle(LeetCode#773)
  205. Basic Calculator Four(LeetCode#770)
  206. Pyramid Transition Matrix(LeetCode#756)
  207. Delete And Earn(LeetCode#740)
  208. Binary Search Tree Iterator(LeetCode#173)
  209. Bulb Switcher(LeetCode#319)
  210. Flatten Nested List Iterator(LeetCode#341)
  211. Redundant Connection(LeetCode#684)
  212. Jewels And Stones(LeetCode#771)
  213. Toeplitz Matrix(LeetCode#766)
  214. Shortest Completing Word(LeetCode#748)
  215. Daily Temperatures(LeetCode#739)
  216. Letter Case Permutation(LeetCode#784)
  217. My Calendar Three(LeetCode#732)
  218. Rotated Digits(LeetCode#788)
  219. Custom Sort String(LeetCode#791)
  220. Array Nesting(LeetCode#565)
  221. Rabbits On Forest(LeetCode#781)
  222. Couples Holding Hands(LeetCode#765)
  223. Split Linked List In Parts(LeetCode#725)
  224. Minimum Distance Between BST Nodes(LeetCode#783)
  225. Kth Smallest Element In A BST(LeetCode#230)
  226. Escape The Ghosts(LeetCode#789)
  227. Parse Lisp Expression(LeetCode#736)
  228. Serialize And Deserialize BST(LeetCode#449)
  229. Swim In Rising Water(LeetCode#778)
  230. Longest Palindromic Subsequence(LeetCode#516)
  231. Best Time To Buy And Sell Stock(LeetCode#121)
  232. Combination Sum IV(LeetCode#377)
  233. Longest Repeating Character Replacement(LeetCode#424)
  234. Elimination Game(LeetCode#390)
  235. Unique Paths(LeetCode#62)
  236. Single Number Two(LeetCode#137)
  237. Task Scheduler(LeetCode#621)
  238. Evaluate Division(LeetCode#399)
  239. Gray Code(LeetCode#89)
  240. Binary Tree Right Side View(LeetCode#199)
  241. Binary Tree Level Order Traversal(LeetCode#102)
  242. Longest Continuous Increasing Subsequence(LeetCode#674)
  243. Lexicographical Numbers(LeetCode#386)
  244. Max Chunks To Make Sorted Two(LeetCode#768)
  245. Binary Tree Level Order Traversal Two(LeetCode#107)
  246. Nth Digit(LeetCode#400)
  247. Champagne Tower(LeetCode#799)
  248. Binary Tree Postorder Traversal(LeetCode#145)
  249. Unique Morse Code Words(LeetCode#804)
  250. QSqrt(LeetCode#69)
  251. Spiral Matrix(LeetCode#54)
  252. Jump Game(LeetCode#55)
  253. Merge Intervals(LeetCode#56)
  254. Insert Interval(LeetCode#57)
  255. Rotate String(LeetCode#796)
  256. My Calendar One(LeetCode#729)
  257. Second Minimum Node In A Binary Tree(LeetCode#671)
  258. Valid Triangle Number(LeetCode#611)
  259. Unique Binary Search Trees(LeetCode#96)
  260. Max Increase To Keep City Skyline(LeetCode#807)
  261. Peak Index In A Mountain Array(LeetCode#852)
  262. Flipping An Image(LeetCode#832)
  263. Binary Tree Pruning(LeetCode#814)
  264. All Paths From Source To Target(LeetCode#797)
  265. Score After Flipping Matrix(LeetCode#861)
  266. Number Of Lines To Write String(LeetCode#806)
  267. To Lower Case(LeetCode#709)
  268. Transpose Matrix(LeetCode#867)
  269. BinaryGap(LeetCode#868)
  270. Top K Frequent Words(LeetCode#692)
  271. Find And Replace Pattern(LeetCode#890)
  272. Reverse Words In A String(LeetCode#151)

Releases

No releases published

Packages

No packages published