Welcome to my LeetCode problem-solving repository! Here, you'll find solutions to various algorithmic problems I've tackled using C++. This repository showcases my approach to solving problems, my coding style, and the algorithms I use.
This repository contains solutions to a range of problems from LeetCode. The problems are categorized by difficulty and topic. Each solution is implemented in C++ and is accompanied by comments to explain the thought process and approach.
The problems are organized into the following categories:
- Easy
- Medium
- Hard
Each problem is placed in a directory corresponding to its difficulty level.
To use this repository, follow these steps:
-
Clone the repository:
git clone https://github.com/sweetpotatoX/problem-solving_leetcode.git
-
Navigate to the problem directory:
cd problem-solving_leetcode/Medium
-
Compile and run the solution:
g++ -o solution solution.cpp ./solution
-
View the code and comments to understand the approach.
Contributions are welcome! If you have suggestions for improvements or additional problems you'd like to see solved, feel free to submit a pull request.
- Fork the repository
- Create a new branch (
git checkout -b feature-branch
) - Commit your changes (
git commit -am 'Add new feature'
) - Push to the branch (
git push origin feature-branch
) - Create a new Pull Request
This repository is licensed under the MIT License. See the LICENSE file for more information.
Happy Coding!