Skip to content

AnkitMajee/DataStructureInCpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DSA in C++ - Beginner Friendly

A Beginner Friendly repository to get started with Data Structures and Algorithms (DSA) in C++. This repo contains questions commonly asked in interviews and online assessments, with detailed solutions.

Contribute by adding interview questions and solutions you’ve encountered. Your contributions will help others kickstart their DSA journey!


📚 Key Features:

  • Beginner-Friendly: A perfect starting point for anyone new to DSA.
  • Interview-Oriented: Includes common interview questions asked in tech companies.
  • C++ Focused: All solutions are implemented in C++ for better understanding and practice.
  • Structured & Clear: Easy-to-follow code snippets and problem descriptions.

🎯 Roadmap:

  • Future Enhancements: Plan to add more advanced problems, explanations, and optimizations to support all stages of learning DSA.
  • Collaborative Growth: Community contributions are encouraged to enhance this repo’s value and make it an even better resource for learners.

📌 How to Contribute:

  1. Add Questions & Solutions: Whenever you come across an interview question or a challenge, add it here along with the solution.

  2. File Format: Write each question and its solution in a single .cpp file.

  3. Naming Convention: Name the file after the problem, avoid using fancy names.

    • For example:

      • Correct: TwoSum.cpp, Watermelon.cpp, WayTooLongWords.cpp
      • Incorrect: Problem1.cpp, Solution.cpp

🛠 Usage & Example:

To maintain consistency and readability, please follow this structure for each file:

// Question Details:
// Problem Statement Description
// Constraints
// Input
// Output

#include <iostream>     // Only include necessary libraries. Avoid #include <bits/stdc++.h> 
using namespace std;

int main() 
{ 
    // Your code here
    return 0;
} 

📖 How to Get Started:

1. Fork and Clone the Repository:

Fork this repo to your own GitHub account and clone it to your local machine.

  gh repo clone AnkitMajee/CPP

2. Add Your Solution:

  • Write your code in the appropriate .cpp file.
  • Ensure the file follows the naming convention and format mentioned above.

3. Submit a Pull Request (PR):

  • After adding your solution, create a pull request so your contributions can be merged into the main repository.
  • Provide a clear PR description, including the problem statement and the solution approach.

🧑‍💻 Contact:

Feel free to reach out for any queries or if you want to collaborate on improving this repo. Let's grow the DSA community together!


🌟 Contributors:

We’re grateful to all contributors for making this repo a valuable resource. Thank you for helping others learn DSA!

Awesome Contributors 🌟



🔄 Stay Updated:

  • Regular updates and additions are made, so please stay tuned for new problems and solutions.
  • Feel free to star the repository and check out the new issues/PRs for more contributions!

Releases

No releases published

Packages

No packages published

Contributors 50

Languages