Skip to content

This repository contains all the LeetCode problems I have solved. Each solution is implemented in C++ and organized by problem number and name.

License

Notifications You must be signed in to change notification settings

https-sharif/LeetCode-Solution

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode-Solution

Overview

This repository contains my solutions to the daily LeetCode problems. Each solution is implemented in C++. The purpose of this repository is to track my progress, improve my problem-solving skills, and share my solutions with others.

LeetCode Profile

LeetCode

Check out my LeetCode Profile to see more of my coding solutions and progress!

Structure

  • Each folder is named after the problem and contains:
    • solution.cpp: The C++ code for the problem.
    • README.md: A detailed explanation of the solution.

Setup Instructions

  1. Clone the repository:

    git clone https://github.com/https-sharif/LeetCode-Solution.git
  2. Navigate to the problem folder:

    cd LeetCode-Solution/(problem-name)
    # Replace 'problem-name' with the actual problem name
  3. Compile and run the solution:

    • Using g++ (GCC):

      g++ solution.cpp -o solution
      ./solution
    • Using clang++ (Clang) or Xcode (macOS):

      clang++ solution.cpp -o solution
      ./solution
    • Using MSVC (Microsoft Visual Studio Compiler on Windows):

      cl solution.cpp
      solution.exe

Contribution

Contributions are welcome! Feel free to fork this repository and submit pull requests if you have any improvements or alternative solutions.

I would be especially glad if you could provide implementations of the solutions in other programming languages, such as Python, Java, or JavaScript. Your name will be credited for your contributions and will help make this repository more versatile and useful for a wider audience!

If you're up for contributing or have any questions, don't hesitate to reach out to me!

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

This repository contains all the LeetCode problems I have solved. Each solution is implemented in C++ and organized by problem number and name.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages