Skip to content

This repository contains my personal solutions to various LeetCode problems in C++.

Notifications You must be signed in to change notification settings

manahiliqbal/Leetcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Solutions in C++

This repo contains my solutions to various LeetCode problems implemented in C++.


Features

  • Comprehensive Solutions: Each solution is written in clean, modular C++ code.
  • Optimized Implementations: Solutions are optimized for both time and space complexity where possible.
  • Variety of Topics: Covers algorithms, data structures, dynamic programming, hashmaps and more.

The solutions are named after their corresponding problem:

For example:

twoSum.cpp
pivotIndex.cpp


Getting Started

Prerequisites

  • Install a C++ compiler (e.g., GCC or Clang).
  • Use an IDE or text editor of your choice (e.g., Visual Studio Code, CLion).

Running Solutions

  1. Clone this repository:
    git clone https://github.com/manahiliqbal/Leetcode.git
    cd Leetcode
  2. Navigate to the problem file you want to run. For example:
    g++ twoSum.cpp -o twoSum
    ./twoSum

Contribution

Contributions are welcome! If you have an optimized solution or a different approach to a problem, feel free to:

  1. Fork the repository.
  2. Create a new branch.
  3. Commit your changes and open a pull request.

License

This project is licensed under the MIT License. Feel free to use the code for learning purposes.


Contact

If you have any questions or suggestions, feel free to contact me via email or open an issue in this repository.

About

This repository contains my personal solutions to various LeetCode problems in C++.

Topics

Resources

Stars

Watchers

Forks

Languages