This repository is used for recording my LeetCode challenges.
Accepted | Title | Difficulty | Date | Category | Language |
---|---|---|---|---|---|
β | 1. Two Sum | Easy | 2020.07.31/2022.09.02/2025.03.30/2025.04.05/2025.07.28 | Python | |
π | 2. Add Two Numbers | Medium | 2022.08.07 | Python | |
β β | 3. Longest Substring Without Repeating Characters | Medium | 2020.08.02/2025.04.07/2025.04.08 | Python | |
β | 4. Median of Two Sorted Arrays | Hard | 2020.08.01 | Python | |
5. Longest Palindromic Substring | Medium | ||||
β | 7. Reverse Integer | Medium | 2025.06.19 | Python | |
β | 8. String to Integer (atoi) | Medium | 2025.06.20 | Python | |
β | 9. Palindrome Number | Easy | 2022.05.16/2025.05.16/2025.06.26 | Go/Python | |
ββ | 11. Container With Most Water | Easy | 2022.10.02/2023.08.25/2025.05.17 | Python | |
ββ | 12. Integer to Roman | Medium | 2025.06.25 | Array / String | Python |
β | 13. Roman to Integer | Easy | 2022.05.17/2025.05.18 | Go/Python | |
β | 14. Longest Common Prefix | Easy | 2022.05.18/2025.05.19 | Python / Go | |
15. 3Sum | Medium | ||||
ββ | 17. Letter Combinations of a Phone Number | Medium | 2025.07.02-03,05 | Backtracking | Python |
β | 20. Valid Parentheses | Easy | 2025.04.05 | Python | |
β β | 21. Merge Two Sorted Lists | Easy | 2022.11.09/2025.05.04-07/2025.07.01/2025.07.31 | Linked List | Python |
β | 26. Remove Duplicates from Sorted Array | Easy | 2025.04.05 | Python | |
β | 27. Remove Element | Easy | 2023.09.21 | Python | |
β | 28. Find the Index of the First Occurrence in a String | Easy | 2025.04.14/2025.05.21 | Python | |
β β | 34. Find First and Last Position of Element in Sorted Array | Medium | 2025/05/22 | Python | |
β | 35. Search Insert Position | Easy | 2025.04.11/2025.04.14/2025.05.01/2025.05.24/2025.06.05 | Python | |
β | 36. Valid Sudoku | Medium | 2025.04.16/2025.04.16 | Matrix | Python |
β β | 45. Jump Game II | Medium | 2025.05.14 | Array / String | Python |
β | 49. Group Anagrams | Medium | 2025.04.05 | Python | |
ββ | 50. Pow(x, n) | Medium | 2025.04.18/2025.04.19/2025.06.13 | Math | Python |
β | 53. Maximum Subarray | Medium | 2022.10.03/2025.06.07 | Kadane's Algorithm | Python |
β | 54. Spiral Matrix | Medium | 2025.06.24 | Matrix | Python |
β | 55. Jump Game | Medium | 2025.05.13 | Array / String | Python |
β | 56. Merge Intervals | Medium | 2021.12.25 | Python | |
β | 57. Insert Interval | Medium | 2025.04.26 | Intervals | Python |
β | 58. Length of Last Word | Easy | 2025.03.31 | Python | |
β | 66. Plus One | Easy | 2025.04.20 | Math | Python |
β | 67. Add Binary | Easy | 2025.04.12/2025.04.13/2025.04.14 | Python | |
β | 69. Sqrt(x) | Easy | 2025.04.17/2025.06.15 | Math | Python |
β | 70. Climbing Stairs | Easy | 2023.03.27/2025.06.04/2025.06.16/2025.06.30/2025.07.29 | DP | Python |
β | 71. Simplify Path | Medium | 2025.04.05/2025.04.06 | Python | |
ββ | 74. Search a 2D Matrix | Medium | 2025.06.06 | Binary Search | Python |
ββ | 83. Remove Duplicates from Sorted List | Easy | 2025.07.30 | Python | |
β | 88. Merge Sorted Array | Easy | 2025.03.26 | Python | |
β | 94. Binary Tree Inorder Traversal | Easy | 2025.06.22 | Python | |
β | 100. Same Tree | Easy | 2022.10.19 | Python | |
β | 101. Symmetric Tree | Easy | 2025.04.25 | Binary Tree General | Python |
ββ | 102. Binary Tree Level Order Traversal | Medium | 2025.05.26-28/06.01 | Binary Tree BFS | Python |
ββ | 104. Maximum Depth of Binary Tree | Easy | 2022.10.12/2023.08.28/2025.08.28 | Binary Tree - DFS | Python |
β | 108. Convert Sorted Array to Binary Search Tree | Easy | 2025.03.31/2025.04.15/2025.07.05 | Python | |
β | 112. Path Sum | Easy | 2025.05.08 | Binary Tree General | Python |
β | 118. Pascal's Triangle | Easy | 2025.08.01 | Python | |
β | 120. Triangle | Medium | 2025.07.06 | ||
β | 121. Best Time to Buy and Sell Stock | Easy | 2022.09.30 | Python | |
β | 122. Best Time to Buy and Sell Stock II | Medium | 2025.05.12 | Array / String | Python |
β | 128. Longest Consecutive Sequence | Medium | 2025.05.09 | Hashmap | Python |
β | 134. Gas Station | Medium | 2025.04.21 | Array / String | Python |
β | 136. Single Number | Easy | 2023.08.30 | Python | |
β | 141. Linked List Cycle | Easy | 2022.11.04 | Python | |
β | 148. Sort List | Medium | 2025.05.25 | Divide & Conquer | Python |
β | 150. Evaluate Reverse Polish Notation | Medium | 2025.04.24 | Stack | Python |
β | 151. Reverse Words in a String | Medium | 2023.08.17 | Python | |
β | 155. Min Stack | Medium | 2025.04.23 | Stack | Python |
β | 162. Find Peak Element | Medium | 2023.09.11 | Python | |
β | 167. Two Sum II - Input Array Is Sorted | Medium | 2025.03.29 | Python | |
β | 169. Majority Element | Easy | 2025.04.20 | Array / String | Python |
β | 171. Excel Sheet Column Number | Easy | 2025.04.30 | Math / String | Python |
β | 175. Combine Two Tables | Easy | 2025.07.07 | Database | SQL |
ββ | 176. Second Highest Salary | Easy | 2025.07.22 | Database | SQL |
ββ | 178. Rank Scores | Medium | 2025.07.23 | Database | SQL |
ββ | 180. Consecutive Numbers | Medium | 2025.07.24 | Database | SQL |
β | 181. Employees Earning More Than Their Managers | Easy | 2025.07.08 | Database | SQL |
β | 182. Duplicate Emails | Easy | 2025.07.09 | Database | SQL |
β | 183. Customers Who Never Order | Easy | 2025.07.10 | Database | SQL |
ββ | 189. Rotate Array | Medium | 2025.05.11 | Array / String | Python |
β | 191. Number of 1 Bits | Easy | 2025.04.28 | Bit Manipulation | Python |
β | 196. Delete Duplicate Emails | Easy | 2025.07.12 | Database | SQL |
ββ | 197. Rising Temperature | Easy | 2025.07.13 | Database | SQL |
β | 198. House Robber | Medium | 2023.09.16 | Python | |
ββ | 199. Binary Tree Right Side View | Medium | 2025.08.04 | Binary Tree - BFS | Python |
ββ | 200. Number of Islands | Medium | 2025.05.15 | Graph General | Python |
ββ | 201. Bitwise AND of Numbers Range | Medium | 2025.06.28 | Bit Manipulation | Python |
β | 202. Happy Number | Easy | 2025.04.05 | Python | |
β | 205. Isomorphic Strings | Easy | 2025.04.04 | Python | |
β | 206. Reverse Linked List | Easy | 2022.10.19/2023.08.24/2025.05.30-06.01/2025.08.12 | Python | |
β | 208. Implement Trie (Prefix Tree) | Medium | 2025.08.22 | Trie | Python |
β | 209. Minimum Size Subarray Sum | Medium | 2025.04.06/2025.04.07/2025.06.02-03 | Python | |
β | 215. Kth Largest Element in an Array | Medium | 2023.08.31 | Python | |
β | 217. Contains Duplicate | Easy | 2022.09.30/2023.08.24 | Python | |
β | 219. Contains Duplicate II | Easy | 2025.04.13 | Python | |
β | 222. Count Complete Tree Nodes | Easy | 2025.04.22 | Binary Tree General | Python |
β | 226. Invert Binary Tree | Easy | 2022.10.20 | Python | |
β | 227. Basic Calculator II | Medium | 2021.12.25 | Python | |
β | 228. Summary Ranges | Easy | 2025.04.02 | Python | |
β | 238. Product of Array Except Self | Medium | 2022.10.10/2023.09.08 | Python | |
β | 242. Valid Anagram | Easy | 2022.11.02 | Python | |
β | 268. Missing Number | Easy | 2025.08.06 | Python | |
π° | 274. H-Index | Medium | 2025.04.29 | Array / String | Python |
β | 278. First Bad Version | Medium | 2021.12.26 | Python | |
ββ | 283. Move Zeroes | Easy | 2023.07.01/2025.09.02 | Two Pointers | Python |
β | 290. Word Pattern | Easy | 2025.04.04 | Python | |
ββ | 328. Odd Even Linked List | Medium | 2025.08.11 | Linked List | Python |
β | 334. Increasing Triplet Subsequence | Medium | 2023.09.07 | Python | |
β | 338. Counting Bits | Easy | 2023.09.09 | Python | |
β | 347. Top K Frequent Elements | Medium | 2022.11.10 | Python | |
β | 345. Reverse Vowels of a String | Easy | 2023.08.16 | Python | |
β | 374. Guess Number Higher or Lower | Easy | 2023.08.29/2025.08.25 | Binary Search | Python |
β | 380. Insert Delete GetRandom O(1) | Medium | 2025.06.17/2025.06.18 | Array / String | Python |
β | 383. Ransom Note | Easy | 2025.04.03 | Python | |
β | 392. Is Subsequence | Easy | 2023.08.17/2025.09.02 | Two Pointers | Python |
β | 394. Decode String | Medium | 2025.05.01 | ||
β β | 435. Non-overlapping Intervals | Medium | 2025.08.21 | Intervals | Python |
β | 443. String Compression | Medium | 2023.08.20 | Python | |
β | 452. Minimum Number of Arrows to Burst Balloons | Medium | 2025.04.27 | Intervals | Python |
β β | 455. Assign Cookies | Easy | 2025.07.27 | Greedy | Python |
β | 476._Number Complement | Easy | 2021.12.27 | Python | |
β β | 511. Game Play Analysis I | Easy | 2025.07.14 | Database | SQL |
β | 530. Minimum Absolute Difference in BST | Easy | 2025.04.09/2025.04.10/2025.06.10 | Python | |
β | 577. Employee Bonus | Easy | 2025.07.15 | Database | SQL |
β | 584. Find Customer Referee | Easy | 2025.07.16 | Database | SQL |
β β | 586. Customer Placing the Largest Number of Orders | Easy | 2025.07.17 | Database | SQL |
β | 595. Big Countries | Easy | 2025.07.18 | Database | SQL |
β | 596. Classes With at Least 5 Students | Easy | 2025.07.19 | Database | SQL |
β | 605. Can Place Flowers | Easy | 2023.08.15 | Python | |
β β | 607. Sales Person | Easy | 2025.07.20 | Database | SQL |
β β | 610. Triangle Judgement | Easy | 2025.07.21/07.22 | Database | SQL |
β | 637. Average of Levels in Binary Tree | Easy | 2025.04.08/2025.04.09/2025.06.11 | Python | |
β β | 643. Maximum Average Subarray I | Easy | 2023.08.19/2025.09.03 | Sliding Window | Python |
β β | 649. Dota2 Senate | Medium | 2025.08.09 | Queue | Python |
β | 700. Search in a Binary Search Tree | Easy | 2023.09.05 | Python | |
β | 704. Binary Search | Medium | 2021.12.26 | Python | |
β | 724. Find Pivot Index | Easy | 2023.08.22/2025.08.14 | Prefix Sum | Python |
β | 735. Asteroid Collision | Medium | 2023.08.27 | Python | |
β β | 739. Daily Temperatures | Medium | 2025.08.22 | Monotonic Stack | Python |
β | 746. Min Cost Climbing Stairs | Easy | 2023.09.04 | Python | |
β β | 872. Leaf-Similar Trees | Easy | 2025.05.02/2025.08.05/2025.08.30 | Binary Tree - DFS | Python |
β | 875. Koko Eating Bananas | Medium | 2025.08.26 | Binary Search | Python |
β β | 901. Online Stock Span | Medium | 2025.08.24 | Monotonic Stack | Python |
β β | 918. Maximum Sum Circular Subarray | Medium | 2025.06.08-09 | Kadane's Algorithm | Python |
β | 933. Number of Recent Calls | Easy | 2023.08.23/2025.08.10/2025.08.27 | Queue | Python |
β | 973. K Closest Points to Origin | Medium | 2021.12.26 | Python | |
β | 977. Squares of a Sorted Array | Easy | 2021.12.27 | Python | |
ββ | 1004. Max Consecutive Ones III | Medium | 2023.09.13/2025.08.09 | Python | |
β | 1071. Greatest Common Divisor of Strings | Easy | 2023.08.14 | Python | |
β | 1114. Print in Order | Easy | 2025.07.26 | Python | |
β | 1137. N-th Tribonacci Number | Easy | 2023.09.03 | Python | |
ββ | 1161. Maximum Level Sum of a Binary Tree | Medium | 2025.08.31 | Binary Tree - BFS | Python |
β | 1207. Unique Number of Occurrences | Easy | 2023.08.22/2025.08.18 | Hash Map / Set | Python |
β β | 1268. Search Suggestions System | Medium | 2025.08.23 | Trie | Python |
β | 1431. Kids With the Greatest Number of Candies | Easy | 2023.08.15 | Python | |
β | 1448. Count Good Nodes in Binary Tree | Medium | 2025.08.16 | Binary Tree - DFS | Python |
β | 1456. Maximum Number of Vowels in a Substring of Given Length | Medium | 2023.09.02 | Python | |
β | 1493. Longest Subarray of 1's After Deleting One Element | Medium | 2023.09.19 | Python | |
β | 1657. Determine if Two Strings Are Close | Medium | 2023.09.01 | Python | |
β | 1679. Max Number of K-Sum Pairs | Medium | 2023.09.07 | Python | |
β | 1732. Find the Highest Altitude | Easy | 2023.08.20/2025.08.13 | Python | |
β | 1768. Merge Strings Alternately | Easy | 2023.06.12 | Python | |
β | 1957. Delete Characters to Make Fancy String | Easy | 2025.08.03 | Python | |
ββ | 2095. Delete the Middle Node of a Linked List | Medium | 2025.06.01 | Linked List | Python |
β | 2215. Find the Difference of Two Arrays | Easy | 2023.08.22/2025.08.17 | Hash Map / Set | Python |
β | 2300. Successful Pairs of Spells and Potions | Medium | 2025.05.03 | ||
β | 2352. Equal Row and Column Pairs | Medium | 2023.09.10/2025.08.19 | Python | |
β | 2390. Removing Stars From a String | Medium | 2023.08.26/2025.08.17 | Stack | Python |
β | 2561. Rearranging Fruits | Hard | 2025.08.02 | Python |
Days | Title | Accepted | Date |
---|---|---|---|
Day1 | Detect Capital | β | 2020.08.01 |
Day2 | Design HashSet | β | 2020.08.02 |
Day3 | Valid Palindrome | β | 2020.08.03 |
Day4 | Power of Four | β | 2020.08.04 |
Day5 | Add and Search Word - Data structure design | Fail | 2020.08.05 |
Day6 | Find All Duplicates in an Array | β | 2020.08.06 |
Day7 | Vertical Order Traversal of a Binary Tree | Fail | 2020.08.07 |