This repository contains my personal solutions to LeetCode problems, organized by problem number and title.
Each problem includes:
- β A clean, efficient Python solution
- π A
README.mdwith problem description, examples, and explanations - π A folder under
leetcode-solutions/named using the problem number and title
This repository helps me:
- Practice daily coding and problem-solving
- Track my learning progress over time
- Prepare for technical interviews
- Build a clear and organized portfolio of LeetCode solutions
LeetCode-Tracker/
βββ generate_solution_folder.py # Script to auto-create solution folders
βββ README.md # β This file
βββ leetcode-solutions/
βββ 2129-capitalize-the-title/
β βββ solution.py
β βββ README.md
βββ 217-contains-duplicate/
β βββ solution.py
β βββ README.md
βββ ...more problems
To keep things clean and automatic, I use a Python script:
- Open
generate_solution_folder.py - Edit these:
problem_numberproblem_titlesolution_codeproblem_description
- Run:
python generate_solution_folder.py- Then push to GitHub:
git add leetcode-solutions/<problem-folder>/
git commit -m "Add Leetcode <number>: <title> solution"
git pushCapitalize each word in the title such that:
- Words with 1β2 letters β lowercase
- Words with 3+ letters β Capitalized (first letter uppercase, rest lowercase)
class Solution:
def capitalizeTitle(self, title: str) -> str:
return " ".join(
word.lower() if len(word) <= 2 else word.capitalize()
for word in title.split()
)- GitHub: Maxd646
- Email: [email protected]
This project is licensed under the MIT License.
Youβre welcome to use, copy, or contribute freely.