|
| 1 | +# **DSA in C++ - Beginner Friendly** |
1 | 2 |
|
2 | | -# DSA in CPP Beginner Friendly |
| 3 | +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. |
3 | 4 |
|
4 | | -A Beginner Friendly repo to get started with DSA in CPP with questions asked in interviews and Online Assessments. |
5 | | -1. Contribute to all interviews questions you came up with solutions. |
6 | | -2. Write the questions and solutions in a single .cpp file |
7 | | -3. Write the file name as the question asked avoid using fanncy name |
8 | | -e.g `Watermelon ,two sum,Way Too Long Words` |
| 5 | +**Contribute** by adding interview questions and solutions you’ve encountered. Your contributions will help others kickstart their DSA journey! |
9 | 6 |
|
10 | | -## Usage/Examples |
| 7 | +--- |
11 | 8 |
|
12 | | -```javascript |
13 | | -//Question Details |
14 | | -//Constraints |
15 | | -//Input |
16 | | -//Output |
| 9 | +## 📚 **Key Features**: |
17 | 10 |
|
18 | | -#include <> //whats actually required avoid #include <bits/stdc++.h> |
| 11 | +* **Beginner-Friendly**: A perfect starting point for anyone new to DSA. |
| 12 | +* **Interview-Oriented**: Includes common interview questions asked in tech companies. |
| 13 | +* **C++ Focused**: All solutions are implemented in **C++** for better understanding and practice. |
| 14 | +* **Structured & Clear**: Easy-to-follow code snippets and problem descriptions. |
| 15 | + |
| 16 | +--- |
| 17 | + |
| 18 | +## 🎯 **Roadmap**: |
| 19 | + |
| 20 | +* **Future Enhancements**: Plan to add more advanced problems, explanations, and optimizations to support all stages of learning DSA. |
| 21 | +* **Collaborative Growth**: Community contributions are encouraged to enhance this repo’s value and make it an even better resource for learners. |
| 22 | + |
| 23 | +--- |
| 24 | + |
| 25 | +## 📌 **How to Contribute**: |
| 26 | + |
| 27 | +1. **Add Questions & Solutions**: Whenever you come across an interview question or a challenge, add it here along with the solution. |
| 28 | +2. **File Format**: Write each question and its solution in a **single `.cpp` file**. |
| 29 | +3. **Naming Convention**: Name the file after the problem, **avoid using fancy names**. |
| 30 | + |
| 31 | + * For example: |
| 32 | + |
| 33 | + * Correct: `TwoSum.cpp`, `Watermelon.cpp`, `WayTooLongWords.cpp` |
| 34 | + * Incorrect: `Problem1.cpp`, `Solution.cpp` |
| 35 | + |
| 36 | +--- |
| 37 | + |
| 38 | +## 🛠 **Usage & Example**: |
| 39 | + |
| 40 | +To maintain consistency and readability, please follow this structure for each file: |
| 41 | + |
| 42 | +```cpp |
| 43 | +// Question Details: |
| 44 | +// Problem Statement Description |
| 45 | +// Constraints |
| 46 | +// Input |
| 47 | +// Output |
| 48 | + |
| 49 | +#include <iostream> // Only include necessary libraries. Avoid #include <bits/stdc++.h> |
19 | 50 | using namespace std; |
| 51 | + |
20 | 52 | int main() |
21 | 53 | { |
22 | | - //code goes here |
23 | | - return 0; |
| 54 | + // Your code here |
| 55 | + return 0; |
24 | 56 | } |
25 | 57 | ``` |
26 | 58 |
|
| 59 | +--- |
27 | 60 |
|
28 | | -## Authors |
29 | | - |
30 | | -- [@AnkitMajee](https://www.github.com/AnkitMajee) |
31 | | - |
| 61 | +## 📖 **How to Get Started**: |
32 | 62 |
|
33 | | -## Installation |
| 63 | +### 1. **Fork and Clone the Repository**: |
34 | 64 |
|
35 | | -Fork and clone the repo or Drag and drop your code |
| 65 | +Fork this repo to your own GitHub account and clone it to your local machine. |
36 | 66 |
|
37 | 67 | ```bash |
38 | 68 | gh repo clone AnkitMajee/CPP |
39 | 69 | ``` |
40 | 70 |
|
41 | | -## Awesome Contributors <img src="https://fonts.gstatic.com/s/e/notoemoji/latest/1f31f/512.webp" width="35" height="30"> |
42 | | - |
43 | | - <div align="center"> |
44 | | - <h3>Thank you for contributing to our repository</h3><br> |
45 | | - <p align="center"> |
46 | | - <a href="https://github.com/AnkitMajee/DataStructureInCpp/graphs/contributors"> |
47 | | - <img src="https://contrib.rocks/image?repo=AnkitMajee/DataStructureInCpp" /> |
48 | | - </a> |
49 | | - </p> |
50 | | - </div> |
| 71 | +### 2. **Add Your Solution**: |
| 72 | + |
| 73 | +* Write your code in the appropriate `.cpp` file. |
| 74 | +* Ensure the file follows the **naming convention** and **format** mentioned above. |
| 75 | + |
| 76 | +### 3. **Submit a Pull Request (PR)**: |
| 77 | + |
| 78 | +* After adding your solution, create a pull request so your contributions can be merged into the main repository. |
| 79 | +* Provide a clear PR description, including the problem statement and the solution approach. |
| 80 | + |
| 81 | +--- |
| 82 | + |
| 83 | +## 🧑💻 **Contact**: |
| 84 | + |
| 85 | +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! |
| 86 | + |
| 87 | +* **Repo Maintainer**: [@AnkitMajee](https://www.github.com/AnkitMajee) |
| 88 | + |
| 89 | +--- |
| 90 | + |
| 91 | +## 🌟 **Contributors**: |
| 92 | + |
| 93 | +We’re grateful to all contributors for making this repo a valuable resource. **Thank you for helping others learn DSA!** |
| 94 | + |
| 95 | +<div align="center"> |
| 96 | + <h3>Awesome Contributors 🌟</h3><br> |
| 97 | + <p align="center"> |
| 98 | + <a href="https://github.com/AnkitMajee/DataStructureInCpp/graphs/contributors"> |
| 99 | + <img src="https://contrib.rocks/image?repo=AnkitMajee/DataStructureInCpp" /> |
| 100 | + </a> |
| 101 | + </p> |
| 102 | +</div> |
| 103 | + |
| 104 | +--- |
| 105 | + |
| 106 | +### 🔄 **Stay Updated**: |
| 107 | + |
| 108 | +* Regular updates and additions are made, so please stay tuned for new problems and solutions. |
| 109 | +* Feel free to **star** the repository and check out the new issues/PRs for more contributions! |
| 110 | + |
| 111 | +--- |
0 commit comments