Skip to content

Maxd646/LeetCode-Tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

LeetCode Tracker πŸ§ πŸ“˜

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.md with problem description, examples, and explanations
  • πŸ“ A folder under leetcode-solutions/ named using the problem number and title

πŸš€ Purpose

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

πŸ“ Folder Structure

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

βš™οΈ How I Add New Problems

To keep things clean and automatic, I use a Python script:

Steps:

  1. Open generate_solution_folder.py
  2. Edit these:
    • problem_number
    • problem_title
    • solution_code
    • problem_description
  3. Run:
python generate_solution_folder.py
  1. Then push to GitHub:
git add leetcode-solutions/<problem-folder>/
git commit -m "Add Leetcode <number>: <title> solution"
git push

βœ… Example Problem

Capitalize 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()
        )

πŸ“« Contact


πŸ“ License

This project is licensed under the MIT License.
You’re welcome to use, copy, or contribute freely.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages