Total LeetCode problems solved: 56 - Easy: 33 - Medium: 23 - Hard: 0
This repository contains my solutions to various LeetCode problems. The solutions are organized by programming language, then by topic, and finally by difficulty level.
leetcode-solutions/
│
├── python/
│ ├── arrays/
│ │ ├── easy/
│ │ ├── medium/
│ │ └── hard/
│ ├── linked-lists/
│ │ ├── easy/
│ │ ├── medium/
│ │ └── hard/
│ └── ...
│
├── java/
│ ├── trees/
│ │ ├── easy/
│ │ ├── medium/
│ │ └── hard/
│ └── ...
│
├── cpp/
│ ├── graphs/
│ │ ├── easy/
│ │ ├── medium/
│ │ └── hard/
│ └── ...
│
├── contests/
│ └── ...
│
└── leetcode-push.sh
To add a new solution:
- Solve the problem and save your solution in the repository root with the naming format:
XXXX-problem-name.py
- Run the
leetcode-push.sh
script with the following arguments:
./leetcode-push.sh <filename> <topic> <difficulty>
For example:
./leetcode-push.sh 0001-two-sum.py arrays easy
This will:
- Move the file to the appropriate folder based on the topic and difficulty
- Update the CSV log file with problem details
- Update this README with the latest problem counts
- Python
- Java
- C++
- and more...
- Arrays
- Linked Lists
- Trees
- Graphs
- Dynamic Programming
- and more...
This is a personal repository for my own LeetCode solutions. However, if you spot any errors or have suggestions for improvements, feel free to open an issue.
This project is open source and available under the MIT License.