Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

C++ Data Structures & Algorithms (DSA) + LeetCode Solutions 🔥🔥🔥

Language License Repo Status

Welcome to C++ DSA & LeetCode Solutions—your all-in-one resource for mastering data structures, algorithms and acing coding interviews!
Welcome to C++ DSA & LeetCode Solutions—your all-in-one resource for mastering data structures, algorithms and acing coding interviews! This repository features clean, well-documented C++ implementations covering foundational CS concepts and a growing library of LeetCode problem solutions.


🚩 Features

  • Core DSA modules: Binary search, sorting, arrays, and more.
  • Extensive LeetCode practice: Solutions mapped by problem number, ideal for interviews and self-study.
  • Clear folder structure: Easily find what you need, whether it’s theory or practice.
  • Beginner-friendly: Accessible explanations and simple build instructions.

📁 Repository Structure

DSA/ ├── Leetcode_Practice_Questions/ # LeetCode solutions │ ├── LC_1.cpp │ ├── LC_2.cpp │ └── README.md ├── binarysearch.cpp # Core algorithms/data structures ├── sort_0_&_1.cpp ├── ... └── README.md # Start here!

cppdsa/
├── Leetcode_Practice_Questions/  # LeetCode solutions
│   ├── LC_1.cpp
│   ├── LC_2.cpp
│   └── ...
├── binarysearch.cpp              # Core algorithms/data structures
├── sort_0_&_1.cpp
└── README.md                     # Start here!

Highlights

  • Leetcode_Practice_Questions:

  • Leetcode_Practice_Questions: Organized, numbered solutions with a focused README.

  • Core DSA files:
    Example:

    • binarysearch.cpp: Classic binary search implementation
    • sort_0_&_1.cpp: Fast 0/1 segregation in arrays
  • Core DSA files: Example:

    • binarysearch.cpp: Classic binary search implementation
    • sort_0_&_1.cpp: Fast 0/1 segregation in arrays
    • (More coming soon!)

🧑‍💻 Usage & Getting Started

  1. Clone the Repository git clone https://github.com/alisamad1/DSA.git
    git clone https://github.com/your-username/your-repo-name.git
  2. Enter the Directory cd DSA
    cd cppdsa
  3. Compile & Run Any File
  • With g++ (example for binarysearch):
    g++ binarysearch.cpp -o binarysearch
    ./binarysearch
    
    g++ binarysearch.cpp -o binarysearch
    ./binarysearch
  • Or open files using your favorite C++ IDE (e.g., VS Code, CLion).

✍️ Contributing

Contributions, bug reports, and suggestions are welcome!
Whether you spot a typo, want to add a new algorithm, or have ideas for improvement, just open an issue or pull request. Contributions, bug reports, and suggestions are welcome! Whether you spot a typo, want to add a new algorithm, or have ideas for improvement, just open an issue or pull request on the new repository.


💡 Why Use This Repository?

  • Exam & Interview Prep: Spot-on for students and job-seekers.
  • Learning by Examples: Study code, understand logic, and solve problems hands-on.
  • Open Source: Freely use and extend under the MIT License.

📫 Contact

Questions? Ideas?
Questions? Ideas? Let’s connect!


⭐ Support

If this project helps you, please ⭐️ this repo and share it to support more learners!