A curated collection of C and C++ programs covering core concepts in:
- Data Structures & Algorithms (DSA)
- Design & Analysis of Algorithms (DAA)
C_and_CPP_Codes/
│
├── DSA/
│ ├── Arrays/
│ ├── LinkedList/
│ ├── Stack & Queue/
│ ├── Trees/
│ ├── Graphs/
│ ├── Hashing/
│ └── Sorting & Searching/
│
├── DAA/
│ ├── Divide & Conquer/
│ ├── Greedy Algorithms/
│ ├── Dynamic Programming/
│ ├── Backtracking/
│ └── Branch & Bound/
│
└── Basics/
├── Pointers/
├── Functions/
├── OOP (C++)/
└── File Handling/
| Topic | Description |
|---|---|
| Arrays | 1D/2D arrays, matrix operations |
| Linked List | Singly, Doubly, Circular |
| Stack & Queue | Array & Linked List implementations |
| Trees | BST, AVL, Heap, Trie |
| Graphs | BFS, DFS, Shortest Path |
| Sorting | Bubble, Merge, Quick, Heap Sort |
| Searching | Linear, Binary Search |
| Hashing | Hash maps, Collision handling |
| Topic | Description |
|---|---|
| Divide & Conquer | Merge Sort, Quick Sort, Binary Search |
| Greedy | Kruskal's, Prim's, Dijkstra's |
| Dynamic Programming | Knapsack, LCS, Matrix Chain |
| Backtracking | N-Queens, Sudoku Solver |
| Branch & Bound | TSP, 0/1 Knapsack |
gcc filename.c -o output
./outputg++ filename.cpp -o output
./outputRequirements: GCC / G++ compiler (MinGW on Windows or GCC on Linux/Mac)
Vansh Agarwal
🔗 GitHub
This repository is open-source and available under the MIT License.