|
| 1 | +<<<<<<< HEAD |
| 2 | +# C++ Data Structures & Algorithms (DSA) + LeetCode Solutions |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | +Welcome to **C++ DSA & LeetCode Solutions**—your all-in-one resource for mastering data structures, algorithms and acing coding interviews! |
| 9 | +Welcome to **C++ DSA & LeetCode Solutions**—your all-in-one resource for mastering data structures, algorithms and acing coding interviews! |
| 10 | +This repository features clean, well-documented C++ implementations covering foundational CS concepts *and* a growing library of LeetCode problem solutions. |
| 11 | + |
| 12 | +--- |
| 13 | + |
| 14 | +## 🚩 Features |
| 15 | + |
| 16 | +- **Core DSA modules:** Binary search, sorting, arrays, and more. |
| 17 | +- **Extensive LeetCode practice:** Solutions mapped by problem number, ideal for interviews and self-study. |
| 18 | +- **Clear folder structure:** Easily find what you need, whether it’s theory or practice. |
| 19 | +- **Beginner-friendly:** Accessible explanations and simple build instructions. |
| 20 | + |
| 21 | +--- |
| 22 | + |
| 23 | +## 📁 Repository Structure |
| 24 | + |
| 25 | +DSA/ |
| 26 | +├── Leetcode_Practice_Questions/ # LeetCode solutions |
| 27 | +│ ├── LC_1.cpp |
| 28 | +│ ├── LC_2.cpp |
| 29 | +│ └── README.md |
| 30 | +├── binarysearch.cpp # Core algorithms/data structures |
| 31 | +├── sort_0_&_1.cpp |
| 32 | +├── ... |
| 33 | +└── README.md # Start here! |
| 34 | + |
| 35 | +``` |
| 36 | +cppdsa/ |
| 37 | +├── Leetcode_Practice_Questions/ # LeetCode solutions |
| 38 | +│ ├── LC_1.cpp |
| 39 | +│ ├── LC_2.cpp |
| 40 | +│ └── ... |
| 41 | +├── binarysearch.cpp # Core algorithms/data structures |
| 42 | +├── sort_0_&_1.cpp |
| 43 | +└── README.md # Start here! |
| 44 | +``` |
| 45 | + |
| 46 | +### Highlights |
| 47 | + |
| 48 | +- **Leetcode_Practice_Questions**: |
| 49 | +- **Leetcode_Practice_Questions**: |
| 50 | + Organized, numbered solutions with a focused [README](./Leetcode_Practice_Questions/README.md). |
| 51 | + |
| 52 | +- **Core DSA files**: |
| 53 | + Example: |
| 54 | + - `binarysearch.cpp`: Classic binary search implementation |
| 55 | + - `sort_0_&_1.cpp`: Fast 0/1 segregation in arrays |
| 56 | +- **Core DSA files**: |
| 57 | + Example: |
| 58 | + - `binarysearch.cpp`: Classic binary search implementation |
| 59 | + - `sort_0_&_1.cpp`: Fast 0/1 segregation in arrays |
| 60 | + - (More coming soon!) |
| 61 | + |
| 62 | +--- |
| 63 | + |
| 64 | +## 🧑💻 Usage & Getting Started |
| 65 | + |
| 66 | +1. **Clone the Repository** |
| 67 | +git clone https://github.com/alisamad1/DSA.git |
| 68 | + ```bash |
| 69 | + git clone https://github.com/your-username/your-repo-name.git |
| 70 | + ``` |
| 71 | +2. **Enter the Directory** |
| 72 | +cd DSA |
| 73 | + ```bash |
| 74 | + cd cppdsa |
| 75 | + ``` |
| 76 | +3. **Compile & Run Any File** |
| 77 | +- With `g++` (example for binarysearch): |
| 78 | + ``` |
| 79 | + g++ binarysearch.cpp -o binarysearch |
| 80 | + ./binarysearch |
| 81 | + ``` |
| 82 | + ```bash |
| 83 | + g++ binarysearch.cpp -o binarysearch |
| 84 | + ./binarysearch |
| 85 | + ``` |
| 86 | +- Or open files using your favorite C++ IDE (e.g., VS Code, CLion). |
| 87 | + |
| 88 | +--- |
| 89 | + |
| 90 | +## ✍️ Contributing |
| 91 | + |
| 92 | +Contributions, bug reports, and suggestions are welcome! |
| 93 | +Whether you spot a typo, want to add a new algorithm, or have ideas for improvement, just open an issue or pull request. |
| 94 | +Contributions, bug reports, and suggestions are welcome! |
| 95 | +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. |
| 96 | + |
| 97 | +--- |
| 98 | + |
| 99 | +## 💡 Why Use This Repository? |
| 100 | + |
| 101 | +- **Exam & Interview Prep:** Spot-on for students and job-seekers. |
| 102 | +- **Learning by Examples:** Study code, understand logic, and solve problems hands-on. |
| 103 | +- **Open Source:** Freely use and extend under the MIT License. |
| 104 | + |
| 105 | +--- |
| 106 | + |
| 107 | +## 📫 Contact |
| 108 | + |
| 109 | +Questions? Ideas? |
| 110 | +Questions? Ideas? |
| 111 | +Let’s connect! |
| 112 | + |
| 113 | +- **LinkedIn:** Ali Us Samad |
| 114 | +- **LinkedIn:** Ali Us Samad |
| 115 | +- **Email:** aliussamad@gmail.com |
| 116 | + |
| 117 | +--- |
| 118 | + |
| 119 | +## ⭐ Support |
| 120 | + |
| 121 | +If this project helps you, please ⭐️ this repo and share it to support more learners! |
0 commit comments