Skip to content

In this Repository , many problems of dsa is solved with different methods and types in c++ language to improve in programming .

Notifications You must be signed in to change notification settings

Harshitkumar07/DSA-in-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

📚 DSA in C++: Comprehensive Problem-Solving Solutions

Welcome to DSA in C++, a collection of data structures and algorithms (DSA) problem solutions. This repository focuses on solving a variety of coding challenges using different methods in C++, including recursive, iterative, dynamic programming, and more.

🔍 Whether you're preparing for coding interviews, enhancing your problem-solving skills, or deepening your knowledge of DSA, this repository is designed for you!

📚 Table of Contents -

📂 Folder Structure -

◾ Each problem is organized in its own folder with multiple solution files (e.g., recursive, iterative, dynamic programming, etc.).

◾ A README file is provided for each problem, explaining the solution in detail.

📝 Overview -

This repository serves as a resource for those learning and practicing DSA concepts through coding problems. Each problem includes:

◾ Explanation of the approach

◾ C++ code solution with comments

◾ Time and space complexity analysis

◾ Different methods used to solve the problem (e.g., recursive, iterative, dynamic programming, etc.)

📖 How to Use This Repository -

  1. Clone the Repository: You can clone this repository to your local machine using:

    git clone https://github.com/Harshitkumar07/Dsa-in-cpp.git
  2. Navigate to Specific Problems: The repository is organized by problem categories. Each problem is located in its respective folder with the solution in a .cpp file. For example:

    • problems/factorial.cpp
  3. Understand the Solution: Each solution is well-commented for clarity. Make sure to read through the comments for a better understanding of the recursive logic used.

  4. Run the Solutions: You can compile and run any solution using a C++ compiler:

    g++ filename.cpp -o output
    ./output

🚀 Features -

◾ Multiple Coding Methods: Solutions to problems are provided using different coding techniques such as recursion, iteration, greedy algorithms, and more.

◾ Structured Code: Each problem is well-structured and documented for clarity.

◾ Optimized Solutions: Efforts are made to provide the most efficient solutions possible, with complexity analysis provided for each approach.

📚 Topics Covered -

This repository covers a wide range of methos and topics, including:

◾ Recursion

More topics will be added soon!

🤝 Contributing -

Contributions are welcome! If you'd like to add new recursive problems or improve the solutions, feel free to fork the repository and submit a pull request.

  1. Fork the repo
  2. Create a new branch (git checkout -b feature/your-feature-name)
  3. Commit your changes (git commit -m 'Add new feature')
  4. Push to the branch (git push origin feature/your-feature-name)
  5. Open a pull request

Star ⭐ the repo if you find it useful!

If you like the repository or find it helpful for your learning or interview preparation, don’t forget to star it on GitHub!

About

In this Repository , many problems of dsa is solved with different methods and types in c++ language to improve in programming .

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages