Skip to content

recherst/leetcode-algorithm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

leetcode-algorithm

Easy

  1. Two Sum
  2. Palindrome Number
  3. Roman to Integer
  4. Longest Common Prefix
  5. Valid Parentheses
  6. Merge Two Sorted Lists
  7. Remove Duplicates from Sorted Array
  8. Remove Element
  9. Implement strStr
  10. Search Insert Position
  11. Maximum Subarray
  12. Length of Last Word
  13. Plus One
  14. Add Binary
  15. Sqrt(x)
  16. Climbing Stairs
  17. Remove Duplicates from Sorted List
  18. Merge Sorted Array
  19. Same Tree
  20. Symmetric Tree
  21. Maximum Depth of Binary Tree
  22. Balanced Binary Tree
  23. Convert Sorted Array to Binary Search Tree
  24. Minimum Depth of Binary Tree
  25. Path Sum
  26. Greatest English Letter in Upper and Lower Case
  27. Pascal's Triangle
  28. Pascal's Triangle II
  29. Best Time to Buy and Sell Stock
  30. Valid Palindrome
  31. Single Number
  32. Linked List Cycle
  33. Binary Tree Preorder Traversal
  34. Binary Tree Inorder Traversal
  35. Binary Tree Postorder Traversal
  36. Intersection of Two Linked Lists
  37. Excel Sheet Column Title
  38. Excel Sheet Column Number
  39. Majority Element
  40. Reverse Bits
  41. Number of 1 Bits
  42. Happy Number
  43. Remove Linked List Elements
  44. Isomorphic Strings
  45. Reverse Linked List
  46. Contains Duplicate
  47. Contains Duplicate II
  48. Implement Stack using Queues
  49. Implement Queue using Stacks
  50. Invert Binary Tree
  51. Summary Ranges
  52. Power of Two
  53. Palindrome Linked List
  54. Lowest Common Ancestor of a Binary Search Tree
  55. Delete Node in a Linked List
  56. Valid Anagram
  57. Binary Tree Paths
  58. Add Digits
  59. Ugly Number
  60. Missing Number
  61. First Bad Version
  62. Move Zeroes
  63. Word Pattern
  64. Nim Game
  65. Range Sum Query - Immutable
  66. Power of Three
  67. Counting Bits
  68. Power of Four
  69. Reverse String
  70. Reverse Vowels of a String
  71. Intersection of Two Arrays
  72. Intersection of Two Arrays II
  73. Valid Perfect Square
  74. Guess Number Higher or Lower
  75. Ransom Note
  76. First Unique Character in a String
  77. Find the Difference
  78. Is Subsequence
  79. Binary Watch
  80. Sum of Left Leaves
  81. Convert a Number to Hexadecimal
  82. Longest Palindrome
  83. Fizz Buzz
  84. Third Maximum Number
  85. Add Strings
  86. Number of Segments in a String
  87. Arranging Coins
  88. Find All Numbers Disappeared in an Array
  89. Minimum Moves to Equal Array Elements
  90. Assign Cookies
  91. Repeated Substring Pattern
  92. Hamming Distance
  93. Number Complement
  94. License Key Formatting
  95. Max Consecutive Ones
  96. Construct the Rectangle
  97. Teemo Attacking
  98. Next Greater Element I
  99. Keyboard Row
  100. Base 7
  101. Relative Ranks
  102. Perfect Number
  103. Fibonacci Number
  104. Detect Capital
  105. Longest Uncommon Subsequence I
  106. Reverse String II

Medium

  1. Min Stack
  2. Longest Substring Without Repeating Characters
  3. Longest Palindromic Substring
  4. ZigZag Conversion
  5. Reverse Integer
  6. String to Integer (atoi)
  7. Container With Most Water
  8. Integer to Roman
  9. 3Sum
  10. 3Sum Closest
  11. Letter Combinations of a Phone Number
  12. 4Sum
  13. Generate Parentheses
  14. Divide Two Integers
  15. Search in Rotated Sorted Array
  16. Find First and Last Position of Element in Sorted Array

About

Leetcode solutions written by Swift. 🔗https://leetcode.com

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages