An open API service indexing awesome lists of open source software.

https://github.com/hafiz-shamnad/leetcode

This repository contains my solutions to various LeetCode problems. The solutions are organized by difficulty level, with each problem stored in its respective folder. Each problem folder includes the problem statement and the solution code.
https://github.com/hafiz-shamnad/leetcode

leetcode leetcode-practice leetcode-python leetcode-solutions

Last synced: 7 months ago
JSON representation

This repository contains my solutions to various LeetCode problems. The solutions are organized by difficulty level, with each problem stored in its respective folder. Each problem folder includes the problem statement and the solution code.

Awesome Lists containing this project

README

          

# LeetCode Solutions

## Overview

This repository contains my solutions to various LeetCode problems. The solutions are organized by difficulty level, with each problem stored in its respective folder. Each problem folder includes the problem statement and the solution code.

## Folder Structure

The repository is structured into three main folders based on the difficulty of the problems:

- **Easy**: Contains solutions to problems marked as easy.
- **Medium**: Contains solutions to problems marked as medium.
- **Hard**: Contains solutions to problems marked as hard.

Each problem folder within these directories is named after the problem title and contains the following files:

- **README.md**: Contains the problem statement.
- **solution.py**: Contains the Python implementation of the solution.

## Installation

### Prerequisites

- Python 3.x

### Setting Up the Repository

1. Clone the repository:
```bash
git clone https://github.com/yourusername/leetcode-solutions.git
cd leetcode
```

2. Ensure you have Python installed. You can check your Python version with:
```bash
python --version
```

## Usage

To run any solution, navigate to the respective problem folder and execute the Python script. For example:

```bash
cd Easy
python filename.py
```

## Contributing

1. Fork the repository.
2. Create your feature branch (`git checkout -b feature/your-feature`).
3. Commit your changes (`git commit -m 'Add some feature'`).
4. Push to the branch (`git push origin feature/your-feature`).
5. Open a pull request.

## License

This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.

## Acknowledgments

- LeetCode for providing the platform and problem statements.
- The open-source community for continuous support and contributions.

---

Happy coding!