My solutions to the LeetCode problems I've solved while practicing data structures and algorithms.
This repository is a running log of my DSA practice. Each problem has its own folder, so a solution is easy to find and the history shows how my problem-solving has progressed over time.
Every problem lives in a folder named <problem number> <problem title>:
LeetCode_Solutions/
├── 1 Two Sum/
├── 11 Container With Most Water/
├── 15 3Sum/
├── 104 Maximum Depth of Binary Tree/
├── 1143 Longest Common Subsequence/
└── ...
Each folder contains the solution file for that problem.
The problems span the core areas of interview-style DSA practice:
- Arrays & Strings: two pointers, sliding window, prefix sums
- Hashing: frequency counting, lookups
- Linked Lists: cycle detection, reordering, intersections
- Trees: traversals (pre/in/post/level order), BST, path sums, lowest common ancestor
- Graphs: DFS/BFS, cloning, connected regions
- Dynamic Programming: subsequences, grid DP, 1D/2D DP
- Stack & Parentheses problems
- Math & Bit Manipulation
- Sorting, Intervals & Greedy
- Backtracking & Recursion
- Clone the repository:
git clone https://github.com/VickZeus/LeetCode_Solutions.git cd LeetCode_Solutions - Open the folder of the problem you're interested in, for example
1 Two Sum. - Read the solution, or copy it into LeetCode's editor to test it.
To find a problem quickly, search the folder names:
ls | grep -i "binary tree"- Build consistent, daily problem-solving habits
- Be able to code solutions independently, without looking up hints
- Strengthen fundamentals in data structures, algorithms, and complexity analysis
- These are my own attempts; some may not be the most optimal approach, and I revisit them as I learn better ones.
- If you spot a bug or a cleaner solution, feel free to open an issue or a pull request.
- GitHub: @VickZeus
If this repo helps you, consider giving it a ⭐.