Skip to content

This repository contains my solutions to various LeetCode problems, organized by programming language, topic, and difficulty level. It serves as a personal coding journal and a resource for fellow programmers, showcasing problem-solving approaches and algorithmic implementations.

Notifications You must be signed in to change notification settings

ElfarraDev/LeetcodeSolutions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Solutions

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.

Repository Structure

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

Usage

To add a new solution:

  1. Solve the problem and save your solution in the repository root with the naming format: XXXX-problem-name.py
  2. 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

Languages

  • Python
  • Java
  • C++
  • and more...

Topics

  • Arrays
  • Linked Lists
  • Trees
  • Graphs
  • Dynamic Programming
  • and more...

Contributing

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.

License

This project is open source and available under the MIT License.

About

This repository contains my solutions to various LeetCode problems, organized by programming language, topic, and difficulty level. It serves as a personal coding journal and a resource for fellow programmers, showcasing problem-solving approaches and algorithmic implementations.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published