Skip to content

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.

License

Notifications You must be signed in to change notification settings

Hafiz-shamnad/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

    git clone https://github.com/yourusername/leetcode-solutions.git
    cd leetcode
  2. Ensure you have Python installed. You can check your Python version with:

    python --version

Usage

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

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 file for details.

Acknowledgments

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

Happy coding!

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages