Skip to content

A collection of LeetCode problem solutions in C++, showcasing various algorithms and problem-solving techniques. Organized by difficulty, this repository demonstrates my approach to tackling coding challenges.

License

Notifications You must be signed in to change notification settings

sweetpotatoX/problem-solving_leetcode

Repository files navigation

Problem Solving on LeetCode

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.

Table of Contents

About

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.

Problem Categories

The problems are organized into the following categories:

  • Easy
  • Medium
  • Hard

Each problem is placed in a directory corresponding to its difficulty level.

Usage

To use this repository, follow these steps:

  1. Clone the repository:

    git clone https://github.com/sweetpotatoX/problem-solving_leetcode.git
  2. Navigate to the problem directory:

    cd problem-solving_leetcode/Medium
  3. Compile and run the solution:

    g++ -o solution solution.cpp
    ./solution
  4. View the code and comments to understand the approach.

Contributing

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.

  1. Fork the repository
  2. Create a new branch (git checkout -b feature-branch)
  3. Commit your changes (git commit -am 'Add new feature')
  4. Push to the branch (git push origin feature-branch)
  5. Create a new Pull Request

License

This repository is licensed under the MIT License. See the LICENSE file for more information.


Happy Coding!

About

A collection of LeetCode problem solutions in C++, showcasing various algorithms and problem-solving techniques. Organized by difficulty, this repository demonstrates my approach to tackling coding challenges.

Topics

Resources

License

Stars

Watchers

Forks