A collection of my solutions to LeetCode problems, organized by topic and difficulty, with explanations and complexity analysis for each approach.
This repository contains my solutions to LeetCode problems, solved as part of my daily practice to strengthen data structures and algorithms skills.
Each solution includes:
- Problem statement summary
- My approach / intuition
- Time and space complexity analysis
- Clean, commented code
| # | Problem | Difficulty | Topic | Solution |
|---|---|---|---|---|
| 1 | Two Sum | Easy | Array/HashMap | Solution for Two Sum |
| 2 | Search Insert Position | Easy | Array | Solution for Search Insert Position |
| 3 | Remove Duplicates from Sorted Array | Easy | Array | Solution for Remove Duplicates from Sorted Array |
| 4 | Longest Common Prefix | Easy | Array | Solution for Longest Common Prefix |
| ... | ... | ... | ... | ... |
- Python
- C++ (Sometimes)
- Solve 100 problems
- Solve 250 problems
- Cover all major topics (Arrays, Trees, Graphs, DP, etc.)
- Revisit and optimize older solutions
This is a personal practice repo, but feel free to open an issue if you spot a bug or have a more efficient approach to suggest.
This project is licensed under the MIT License.
Note
This repository is under construction. Time-frame may vary. I will try to be consistent.