| # | Problem | Difficulty | LeetCode Link | Solution |
|---|---|---|---|---|
| 1 | Two Sum | π’ Easy | Link | Solution |
| 2 | Add Two Numbers | π‘ Medium | Link | Solution |
| 7 | Reverse Integer | π‘ Medium | Link | Solution |
| 9 | Palindrome Number | π’ Easy | Link | Solution |
| 13 | Roman to Integer | π’ Easy | Link | Solution |
| 14 | Longest Common Prefix | π’ Easy | Link | Solution |
| 17 | Letter Combinations of a Phone Number | π‘ Medium | Link | Solution |
| 19 | Remove Nth Node From End of List | π‘ Medium | Link | Solution |
| 20 | Valid Parentheses | π’ Easy | Link | Solution |
| 26 | Remove Duplicates from Sorted Array | π’ Easy | Link | Solution |
| 27 | Remove Element | π’ Easy | Link | Solution |
| 35 | Search Insert Position | π’ Easy | Link | Solution |
| 39 | Combination Sum | π‘ Medium | Link | Solution |
| 46 | Permutations | π‘ Medium | Link | Solution |
| 50 | Pow(x, n) | π’ Easy | Link | Solution |
| 53 | Maximum Subarray | π‘ Medium | Link | Solution |
| 54 | Spiral Matrix | π‘ Medium | Link | Solution |
| 58 | Length of Last Word | π’ Easy | Link | Solution |
| 61 | Rotate List | π‘ Medium | Link | Solution |
| 66 | Plus One | π’ Easy | Link | Solution |
| 69 | Sqrt(x) | π’ Easy | Link | Solution |
| 75 | Sort Colors | π‘ Medium | Link | Solution |
| 83 | Remove Duplicates from Sorted List | π’ Easy | Link | Solution |
| 88 | Merge Sorted Array | π’ Easy | Link | Solution |
| 118 | Pascal's Triangle | π’ Easy | Link | Solution |
| 119 | Pascal's Triangle II | π’ Easy | Link | Solution |
| 121 | Best Time to Buy and Sell Stock | π’ Easy | Link | Solution |
| 122 | Best Time to Buy and Sell Stock II | π‘ Medium | Link | Solution |
| 125 | Valid Palindrome | π’ Easy | Link | Solution |
| 128 | Longest Consecutive Sequence | π’ Easy | Link | Solution |
| 136 | Single Number | π’ Easy | Link | Solution |
| 142 | Linked List Cycle II | π‘ Medium | Link | Solution |
| 160 | Intersection of Two Linked Lists | π’ Easy | Link | Solution |
| 167 | Two Sum II - Input Array Is Sorted | π‘ Medium | Link | Solution |
| 169 | Majority Element | π’ Easy | Link | Solution |
| 176 | Second Highest Salary | π‘ Medium | Link | Solution |
| 177 | Nth Highest Salary | π‘ Medium | Link | Solution |
| 178 | Rank Scores | π‘ Medium | Link | Solution |
| 183 | Customers Who Never Order | π’ Easy | Link | Solution |
| 184 | Department Highest Salary | π‘ Medium | Link | Solution |
| 189 | Rotate Array | π‘ Medium | Link | Solution |
| 141 | Linked List Cycle | π’ Easy | Link | Solution |
| 196 | Delete Duplicate Emails | π’ Easy | Link | Solution |
| 202 | Happy Number | π’ Easy | Link | Solution |
| 206 | Reverse Linked List | π’ Easy | Link | Solution |
| 225 | Implement Stack using Queues | π’ Easy | Link | Solution |
| 231 | Power of Two | π’ Easy | Link | Solution |
| 232 | Implement Queue using Stacks | π’ Easy | Link | Solution |
| 237 | Delete Node in a Linked List | π‘ Medium | Link | Solution |
| 242 | Valid Anagram | π’ Easy | Link | Solution |
| 283 | Move Zeroes | π’ Easy | Link | Solution |
| 287 | Find the Duplicate Number | π‘ Medium | Link | Solution |
| 412 | Fizz Buzz | π’ Easy | Link | Solution |
| 451 | Sort Characters By Frequency | π‘ Medium | Link | Solution |
| 485 | Max Consecutive Ones | π’ Easy | Link | Solution |
| 496 | Next Greater Element I | π’ Easy | Link | Solution |
| 503 | Next Greater Element II | π‘ Medium | Link | Solution |
| 509 | Fibonacci Number | π’ Easy | Link | Solution |
| 511 | Game Play Analysis I | π’ Easy | Link | Solution |
| 586 | Customer Placing the Largest Number of Orders | π’ Easy | Link | Solution |
| 595 | Big Countries | π’ Easy | Link | Solution |
| 596 | Classes With at Least 5 Students | π’ Easy | Link | Solution |
| 607 | Sales Person | π’ Easy | Link | Solution |
| 682 | Baseball Game | π’ Easy | Link | Solution |
| 704 | Binary Search | π’ Easy | Link | Solution |
| 796 | Rotate String | π’ Easy | Link | Solution |
| 844 | Backspace String Compare | π’ Easy | Link | Solution |
| 876 | Middle of the Linked List | π’ Easy | Link | Solution |
| 905 | Sort Array By Parity | π’ Easy | Link | Solution |
| 977 | Squares of a Sorted Array | π’ Easy | Link | Solution |
| 1050 | Actors and Directors Who Cooperated At Least Three Times | π’ Easy | Link | Solution |
| 1108 | Defanging an IP Address | π’ Easy | Link | Solution |
| 1137 | N-th Tribonacci Number | π’ Easy | Link | Solution |
| 1148 | Article Views I | π’ Easy | Link | Solution |
| 1280 | Students and Examinations | π’ Easy | Link | Solution |
| 1378 | Replace Employee ID With The Unique Identifier | π’ Easy | Link | Solution |
| 1480 | Running Sum of 1d Array | π’ Easy | Link | Solution |
| 1484 | Group Sold Products By The Date | π’ Easy | Link | Solution |
| 1517 | Find Users With Valid E-Mails | π’ Easy | Link | Solution |
| 1523 | Count Odd Numbers in an Interval Range | π’ Easy | Link | Solution |
| 1527 | Patients With a Condition | π’ Easy | Link | Solution |
| 1550 | Three Consecutive Odds | π’ Easy | Link | Solution |
| 1614 | Maximum Nesting Depth of the Parentheses | π’ Easy | Link | Solution |
| 1667 | Fix Names in a Table | π’ Easy | Link | Solution |
| 1672 | Richest Customer Wealth | π’ Easy | Link | Solution |
| 1683 | Invalid Tweets | π’ Easy | Link | Solution |
| 1693 | Daily Leads and Partners | π’ Easy | Link | Solution |
| 1741 | Find Total Time Spent by Each Employee | π’ Easy | Link | Solution |
| 1752 | Check if Array Is Sorted and Rotated | π’ Easy | Link | Solution |
| 1757 | Recyclable and Low Fat Products | π’ Easy | Link | Solution |
| 1795 | Rearrange Products Table | π’ Easy | Link | Solution |
| 1822 | Sign of the Product of an Array | π’ Easy | Link | Solution |
| 1873 | Calculate Special Bonus | π’ Easy | Link | Solution |
| 1903 | Largest Odd Number in String | π’ Easy | Link | Solution |
| 1907 | Count Salary Categories | π‘ Medium | Link | Solution |
| 2356 | Number of Unique Subjects Taught by Each Teacher | π’ Easy | Link | Solution |
| 2620 | Counter | π’ Easy | Link | Solution |
| 2621 | Sleep | π’ Easy | Link | Solution |
| 2623 | Memoize | π‘ Medium | Link | Solution |
| 2626 | Array Reduce Transformation | π’ Easy | Link | Solution |
| 2629 | Function Composition | π’ Easy | Link | Solution |
| 2634 | Filter Elements from Array | π’ Easy | Link | Solution |
| 2635 | Apply Transform Over Each Element in Array | π’ Easy | Link | Solution |
| 2665 | Counter II | π’ Easy | Link | Solution |
| 2666 | Allow One Function Call | π’ Easy | Link | Solution |
| 2667 | Create Hello World Function | π’ Easy | Link | Solution |
| 2703 | Return Length of Arguments Passed | π’ Easy | Link | Solution |
| 2704 | To Be Or Not To Be | π’ Easy | Link | Solution |
| 2715 | Timeout Cancellation | π’ Easy | Link | Solution |
| 2723 | Add Two Promises | π’ Easy | Link | Solution |
| 2942 | Find Words Containing Character | π’ Easy | Link | Solution |
| 3232 | Find if Digit Game Can Be Won | π’ Easy | Link | Solution |
This repository contains my journey through LeetCode problems, solving at least one problem daily. Each solution is carefully organized by difficulty level:
- π’ Easy - Fundamental problems to build strong foundations
- π‘ Medium - Intermediate challenges requiring more complex thinking
- π΄ Hard - Advanced problems testing deep algorithmic knowledge
π¦ leetcode-solutions/
β
βββ π EASY/
β βββ 88 Easy problems solved
β
βββ π MEDIUM/
β βββ 24 Medium problems solved
β
βββ π HARD/
β βββ 0 Hard problems solved
β
βββ π README.md
| Difficulty | Solved | Percentage |
|---|---|---|
| π’ Easy | 88 | |
| π‘ Medium | 24 | |
| π΄ Hard | 0 | |
| Total | 112 | π― |
Each solution follows a structured format:
- Problem Statement - Clear description of the problem
- Approach - Explanation of the solution strategy
- Time Complexity - Big O notation for time
- Space Complexity - Big O notation for space
- Code - Clean, well-commented Python implementation
| Category | Tools |
|---|---|
| π» Language | |
| π§ IDE | |
| π Version Control |
- β Solve at least 1 problem daily
- π― Master core data structures and algorithms
- π Improve problem-solving speed and accuracy
- πͺ Build consistency and discipline
- π Document solutions for future reference
Feel free to:
- π Report bugs or issues
- π‘ Suggest better approaches
- β Star this repository if you find it helpful!
This project is licensed under the MIT License - feel free to use these solutions for learning purposes!
If you find this repository helpful, please consider:
"The only way to learn a new programming language is by writing programs in it."
β Dennis Ritchie
"First, solve the problem. Then, write the code."
β John Johnson