Skip to content

s1vrn/Data-Structures-Algorithms-cplusplus-

Repository files navigation

Data Structures & Algorithms in C++

A comprehensive collection of classical algorithms and data structures implemented in C++.
Designed for Competitive Programming and Computer Science Students.

📖 Documentation

  • 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.

📂 Directory Structure

├── 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

🚀 Quick Start

  1. Read the Roadmap to determine where to start.
  2. Setup your Environment.
  3. Navigate to a folder and try running the code:
cd Basics
g++ -std=c++17 template.cpp -o template
./template

🤝 Contributing

Feel free to fork this repository and submit pull requests for new algorithms or optimizations!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages