A comprehensive collection of classical algorithms and data structures implemented in C++.
Designed for Competitive Programming and Computer Science Students.
- Roadmap & Usage Guide: Start here! Learn how to use this repo and follow a structured learning path.
- Environment Setup: Step-by-step guide to installing C++ and running code on your machine.
├── Basics/ # [Practice](Basics/practice_problems.md) | CP Templates, Fast I/O, Complexity, Debugging, Stress Testing, Interactive
│ └── Syntax/ # Beginner Tutorials (Vars, Loops, Pointers, Structs, etc.)
├── DataStructures/ # [Practice](DataStructures/practice_problems.md) | Vectors, Maps, PQ, SegTree, DSU, Sparse Table, PBDS, Mo's Algo
├── Algorithms/ # [Practice](Algorithms/practice_problems.md) | Sorting, Binary Search, Sliding Window, Kadane, Greedy
├── Math/ # [Practice](Math/practice_problems.md) | Number Theory, Modular Arithmetic, Combinatorics, Matrix Exp, Game Theory
├── GraphTheory/ # [Practice](GraphTheory/practice_problems.md) | BFS, DFS, Dijkstra, Floyd-Warshall, MST, SCC, Topo Sort
├── DynamicProgramming/ # [Practice](DynamicProgramming/practice_problems.md) | Knapsack, LCS, LIS, Coin Change, Bitmask, Digit DP
├── Strings/ # [Practice](Strings/practice_problems.md) | KMP, Rabin-Karp, Trie, Manacher, Z-Algo, Suffix Array
├── Backtracking/ # [Practice](Backtracking/practice_problems.md) | N-Queens, Sudoku, Word Search, Graph Coloring
└── BitManipulation/ # [Practice](BitManipulation/practice_problems.md) | Bitwise Tricks, Subsets
- Read the Roadmap to determine where to start.
- Setup your Environment.
- Navigate to a folder and try running the code:
cd Basics
g++ -std=c++17 template.cpp -o template
./templateFeel free to fork this repository and submit pull requests for new algorithms or optimizations!