1. Introduction
  2. Problems sorted by number
  3. Special Categories
  4. My Picks - SQL
  5. SQL 50
  6. LeetCode 75 (In Progress)
  7. Solutions divided by hardness
  8. Easy
    1. 1. Two Sum
    2. 9. Palindrome Number
    3. 13. Roman to Integer
    4. 20. Valid Parentheses
    5. 21. Merge Two Sorted Lists
    6. 26. Remove Duplicates from Sorted Array
    7. 27. Remove Element
    8. 58. Length of Last Word
    9. 66. Plus One
    10. 70. Climbing Stairs
    11. 83. Remove Duplicates from Sorted List
    12. 94. Binary Tree Inorder Traversal
    13. 100. Same Tree
    14. 104. Maximum Depth of Binary Tree
    15. 111. Minimum Depth of Binary Tree
    16. 112. Path Sum
    17. 118. Pascal's Triangle
    18. 119. Pascal's Triangle II
    19. 125. Valid Palindrome
    20. 136. Single Number
    21. 141. Linked List Cycle
    22. 144. Binary Tree Preorder Traversal
    23. 145. Binary Tree Postorder Traversal
    24. 175. Combine Two Tables
    25. 181. Employees Earning More Than Their Managers
    26. 182. Duplicate Emails
    27. 183. Customers Who Never Order
    28. 191. Number of 1 Bits
    29. 193. Valid Phone Numbers
    30. 195. Tenth Line
    31. 196. Delete Duplicate Emails
    32. 197. Rising Temperature
    33. 203. Remove Linked List Elements
    34. 206. Reverse Linked Lists
    35. 217. Contains Duplicate
    36. 226. Invert Binary Tree
    37. 231. Power of Two
    38. 234. Palindrome Linked List
    39. 242. Valid Anagram
    40. 283. Move Zeroes
    41. 292. Nim Game
    42. 338. Counting Bits
    43. 344. Reverse String
    44. 345. Reverse Vowels of a String
    45. 374. Guess Number Higher or Lower
    46. 392. Is Subsequence
    47. 511. Game Play Analysis I
    48. 577. Employee Bonus
    49. 584. Find Customer Referee
    50. 586. Customer Placing the Largest Number of Orders
    51. 595. Big Countries
    52. 596. Classes More Than 5 Students
    53. 607. Sales Person
    54. 610. Triangle Judgement
    55. 619. Biggest Single Number
    56. 620. Not Boring Movies
    57. 627. Swap Salary
    58. 643. Maximum Average Subarray I
    59. 700. Search in a Binary Search Tree
    60. 709. To Lower Case
    61. 724. Find Pivot Index
    62. 746. Min Cost Climbing Stairs
    63. 872. Leaf-Similar Trees
    64. 876. Middle of the Linked List
    65. 897. Increasing Order Search Tree
    66. 933. Number of Recent Calls
    67. 1050. Actors and Directors Who Cooperated At Least Three Times
    68. 1068. Product Sales Analysis I
    69. 1071. Greatest Common Divisor of Strings
    70. 1075. Project Employees I
    71. 1084. Sales Analysis III
    72. 1137. N-th Tribonacci Number
    73. 1141. User Activity for the Past 30 Days I
    74. 1148. Article Views I
    75. 1179. Reformat Department Table
    76. 1207. Unique Number of Occurrences
    77. 1211. Queries Quality and Percentage
    78. 1251. Average Selling Price
    79. 1280. Students and Examinations
    80. 1290. Convert Binary Number in a Linked List to Integer
    81. 1327. List the Products Ordered in a Period
    82. 1378. Replace Employee ID With The Unique Identifier
    83. 1407. Top Travellers
    84. 1431. Kids With the Greatest Number of Candies
    85. 1484. Group Sold Products By The Date
    86. 1486. XOR Operation in an Array
    87. 1517. Find Users With Valid E-Mails
    88. 1527. Patients With a Condition
    89. 1581. Customer Who Visited but Did Not Make Any Transactions
    90. 1587. Bank Account Summary II
    91. 1633. Percentage of Users Attended a Contest
    92. 1661. Average Time of Process per Machine
    93. 1667. Fix Names in a Table
    94. 1683. Invalid Tweets
    95. 1693. Daily Leads and Partners
    96. 1704. Determine if String Halves Are Alike
    97. 1729. Find Followers Count
    98. 1731. The Number of Employees Which Report to Each Employee
    99. 1732. Find the Highest Altitude
    100. 1741. Find Total Time Spent by Each Employee
    101. 1757. Recyclable and Low Fat Products
    102. 1768. Merge Strings Alternately
    103. 1789. Primary Department for Each Employee
    104. 1795. Rearrange Products Table
    105. 1822. Sign of the Product of an Array
    106. 1873. Calculate Special Bonus
    107. 1890. The Latest Login in 2020
    108. 1929. Concatenation of Array
    109. 1965. Employees With Missing Information
    110. 1967. Number of Strings That Appear as Substrings in Word
    111. 1978. Employees Whose Manager Left the Company
    112. 1991. Find the Middle Index in Array
    113. 2215. Find the Difference of Two Arrays
    114. 2235. Add Two Integers
    115. 2331. Evaluate Boolean Binary Tree
    116. 2356. Number of Unique Subjects Taught by Each Teacher
    117. 2703. Return Length of Arguments Passed
    118. 2723. Add Two Promises
  9. Medium
    1. 2. Add Two Numbers
    2. 3. Longest Substring Without Repeating Characters
    3. 6. Zigzag Conversion
    4. 7. Reverse Integer
    5. 11. Container With Most Water
    6. 12. Integer to Roman
    7. 17. Letter Combination of a Phone Number
    8. 19. Remove Nth Node From End of List
    9. 22. Generate Parentheses
    10. 24. Swap Nodes in Pairs
    11. 31. Next Permutation
    12. 36. Valid Sudoku
    13. 39. Combination Sum
    14. 46. Permutations
    15. 47. Permutations II
    16. 48. Rotate Image
    17. 50. Pow(x, n)
    18. 54. Spiral Matrix
    19. 55. Jump Game
    20. 56. Merge Intervals
    21. 57. Insert Interval
    22. 59. Spiral Matrix II
    23. 62. Unique Paths
    24. 64. Minimum Path Sum
    25. 78. Subsets
    26. 98. Validate Binary Search Tree
    27. 113. Path Sum II
    28. 143. Reorder List
    29. 146. LRU Cache
    30. 150. Evaluate Reverse Polish Notation
    31. 151. Reverse Words in a String
    32. 155. Min Stack
    33. 167. Two Sum II - Input Array Is Sorted
    34. 176. Second Highest Salary
    35. 178. Rank Scores
    36. 177. Nth Highest Salary
    37. 179. Largest Number
    38. 180. Consecutive Numbers
    39. 184. Department Highest Salary
    40. 198. House Robber
    41. 199. Binary Tree Right Side View
    42. 200. Number of Islands
    43. 207. Course Schedule
    44. 208. Implement Trie (Prefix Tree)
    45. 210. Course Schedule II
    46. 215. Kth Largest Element in an Array
    47. 216. Combination Sum III
    48. 237. Delete Node in a Linked List
    49. 238. Product of Array Except Self
    50. 279. Perfect Squares
    51. 322. Coin Change
    52. 328. Odd Even Linked List
    53. 334. Increasing Triplet Subsequence
    54. 347. Top K Frequent Elements
    55. 371. Sum of Two Integers
    56. 375. Guess Number Higher or Lower II
    57. 435. Non-overlapping Intervals
    58. 443. String Compression
    59. 452. Minimum Number of Arrows to Burst Balloons
    60. 518. Coin Change II
    61. 547. Number of Provinces
    62. 550. Game Play Analysis IV
    63. 570. Managers with at Least 5 Direct Reports
    64. 585. Investments in 2016
    65. 602. Friend Requests II: Who Has the Most Friends
    66. 608. Tree Node
    67. 626. Exchange Seats
    68. 735. Asteroid Collision
    69. 739. Daily Temperatures
    70. 790. Domino and Tromino Tiling
    71. 841. Keys and Rooms
    72. 901. Online Stock Span
    73. 994. Rotting Oranges
    74. 1004. Max Consecutive Ones III
    75. 1045. Customers Who Bought All Products
    76. 1070. Product Sales Analysis III
    77. 1143. Longest Common Subsequence
    78. 1158. Market Analysis I
    79. 1161. Maximum Level Sum of a Binary Tree
    80. 1164. Product Price at a Given Date
    81. 1174. Immediate Food Delivery II
    82. 1193. Monthly Transactions I
    83. 1204. Last Person to Fit in the Bus
    84. 1268. Search Suggestions System
    85. 1286. Iterator for Combination
    86. 1318. Minimum Flips to Make a OR b Equal to c
    87. 1321. Restaurant Growth
    88. 1341. Movie Rating
    89. 1393. Capital Gain/Loss
    90. 1448. Count Good Nodes in Binary Tree
    91. 1456. Maximum Number of Vowels in a Substring of Given Length
    92. 1493. Longest Subarray of 1's After Deleting One Element
    93. 1657. Determine if Two Strings Are Close
    94. 1907. Count Salary Categories
    95. 1926. Nearest Exit from Entrance in Maze
    96. 1934. Confirmation Rate
    97. 2095. Delete the Middle Node of a Linked List
    98. 2130. Maximum Twin Sum of a Linked List
    99. 2336. Smallest Number in Infinite Set
    100. 2352. Equal Row and Column Pairs
    101. 2390. Removing Stars From a String
    102. 2807. Insert Greatest Common Divisors in Linked List
    103. 3220. Odd and Even Transactions
  10. Hard
    1. 60. Permutation Sequence
    2. 65. Valid Number
    3. 185. Department Top Three Salaries
    4. 239. Sliding Window Maximum
    5. 262. Trips and Users
    6. 295. Find Median from Data Stream
    7. 601. Human Traffic of Stadium
    8. 1220. Count Vowels Permutation

Leetbook

My Picks - SQL

Join

  • 184. Department Highest Salary
  • 550. Game Play Analysis IV
  • 1158. Market Analysis I
  • 1251. Average Selling Price
  • 1280. Students and Examinations
  • 1407. Top Travellers
  • 1661. Average Time of Process per Machine

Grouping

  • 1174. Immediate Food Delivery II
  • 1789. Primary Department for Each Employee

LIMIT and OFFSET

  • 177. Nth Highest Salary
  • 602. Friend Requests II: Who Has the Most Friends

Subquery

A very good example for Subquery. Especially for EXISTS and NOT EXISTS:

  • 183. Customers Who Never Order
  • 1084. Sales Analysis III
  • 1978. Employees Whose Manager Left the Company

These are very difficult but worth to do:

  • 176. Second Highest Salary
  • 585. Investments in 2016
  • 185. Department Top Three Salaries

Advanced Functions

  • 178. Rank Scores
  • 1193. Monthly Transactions I
  • 1204. Last Person to Fit in the Bus
  • 1321. Restaurant Growth
  • 1484. Group Sold Products By The Date
  • 1934. Confirmation Rate

Some "Creativity" and "Tricks"

  • 180. Consecutive Numbers
  • 262. Trips and Users
  • 601. Human Traffic of Stadium
  • 608. Tree Node
  • 626. Exchange Seats
  • 627. Swap Salary
  • 1164. Product Price at a Given Date
  • 1341. Movie Rating
  • 1965. Employees With Missing Information