Skip to content

theahmedhany/LeetCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeetCode Problem Solutions

📘 A collection of algorithmic problem solutions from LeetCode, implemented in C++.

Overview

This repository contains curated solutions to a variety of LeetCode problems, all written in C++. It serves as a resource for practicing and improving your problem-solving skills across different topics and difficulty levels.

About the Problems

LeetCode is a leading platform for preparing technical coding interviews and enhancing algorithmic thinking. The problems here are selected from LeetCode and solved using clean, efficient, and well-documented C++ code.

Feel free to explore different solutions and approaches. There's often more than one way to solve a problem—experiment, debug, and learn as you go.

Accessing the Problems

All problems can be accessed via the LeetCode website.
Each solution in this repository is named according to the problem title or number, making it easier to find the corresponding question.

Topics Covered

This repository includes solutions to problems involving:

  • Arrays & Strings
  • Hash Tables
  • Two Pointers
  • Sliding Window
  • Recursion & Backtracking
  • Binary Search
  • Stack & Queue
  • Linked Lists & Trees
  • Graphs (BFS, DFS)
  • Dynamic Programming
  • Greedy Algorithms
  • Sorting & Searching

Objectives

The main objectives of this repository are to:

  • Strengthen algorithmic and logical thinking
  • Improve coding fluency in C++
  • Prepare for coding interviews and technical assessments
  • Practice structured problem-solving under constraints
  • Build a strong foundation for competitive programming

Contributing

Contributions are welcome and appreciated!
If you'd like to add a solution, suggest an improvement, or report an issue, feel free to open a pull request or submit an issue. Let’s make this a valuable resource for all learners.

Disclaimer

All problem statements are the property of LeetCode.
The solutions provided here are for educational purposes only. They should not be used for cheating in contests or interviews.


Happy Coding! 🚀