Get Started
Start using algorithm snippets in your competitive programming workflow in minutes.
Why C++ Algorithm Snippets?
This library provides 161+ battle-tested algorithm implementations designed for competitive programming. Every algorithm includes automatic snippet generation for VS Code and Vim/Neovim, allowing you to focus on problem-solving rather than implementing common data structures and algorithms from scratch.Graph Algorithms
Dijkstra, Bellman-Ford, Floyd-Warshall, MST, and tree algorithms
Data Structures
Tries, segment trees, fenwick trees, and advanced structures
String Algorithms
KMP, Rabin-Karp, Aho-Corasick, suffix arrays, and hashing
Math & Number Theory
Prime factorization, GCD, modular arithmetic, and matrix operations
Key Features
Snippet Generation
Automatic snippet generation for VS Code and Vim/Neovim
Contest Templates
Optimized templates for USACO, Google Code Jam, and LeetCode
Debugging Tools
Comprehensive debugging utilities for competitive programming
Fast I/O
Optimized input/output utilities and macros
Quick Example
Get started with Dijkstra’s algorithm in your competitive programming solution:Explore the Library
Installation
Set up snippet generation
Algorithms
Browse all algorithms
API Reference
Complete API documentation