REPOSITORY OVERVIEWLive repository statistics
★ 7Stars
⑂ 1Forks
◯ 0Open issues
◉ 7Watchers
56/100
OPENREPOHUB HEALTH SIGNALMixed signals
A transparent discovery signal based on current public GitHub metadata.
Recent activity35% weight
72 Community adoption25% weight
13 Maintenance state20% weight
100 License clarity10% weight
0 Project information10% weight
75 This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
README preview
Competitive Programming Algorithm Templates
Overview
This repository is a comprehensive collection of contest-ready C++ templates for over 60 algorithms commonly used in competitive programming. Designed for speed and flexibility, these templates are optimized for use in platforms like Codeforces, AtCoder, LeetCode, and other online judges. Each template includes fast I/O, clear comments, and a minimal main function, making them easy to adapt for specific problems.
Whether you're preparing for coding competitions, practicing algorithmic problem-solving, or building a reference library, this repository provides robust, standalone implementations of essential algorithms across multiple categories.
Features
- Contest-Ready: Templates are optimized with fast input/output (
ios_base::sync_with_stdio(false); cin.tie(nullptr);) to meet strict time limits.
- Modular Design: Each algorithm is implemented in a single
.cpp file, ready to be copied or modified.
- Clear Documentation: Inline comments explain key steps, making the code accessible to intermediate and advanced programmers.
- Broad Coverage: Includes algorithms from basic data structures to advanced techniques, covering all major competitive programming topics.
Algorithm Categories and Templates
The repository organizes algorithms into the following categories, with each template implemented in C++:
1. Basic Data Structures and Algorithms
2. Graph Algorithms
3. Tree Algorithms
4. Dynamic Programming
5. Number Theory and Mathematics
6. Greedy Algorithms
7. Divide and Conquer
8. String Algorithms
9. Geometry Algorithms
10. Advance Data structures
11. Miscellaneous Algorithms
How to Use
- Clone or Download: Clone the repository or download individual
.cpp files.
- Compile: Use a C++ compiler (e.g.,
g++) with C++17 or later:
g++ -std=c++17 -O2 template_name.cpp -o template_name
- Run: Execute the compiled program and provide input as specified in the main function:
./template_name
- Adapt: Modify the main function or algorithm logic to fit the specific problem. Most templates include a sample input/output format for testing.
ALGORITHMICALLY RELATEDSimilar Open-Source Projects
Selected from shared topics, language and repository description—not editorial ratings.
Welcome to my C# Advent of Code repository! This collection is dedicated to providing solutions and insights into the Advent of Code challenges, all coded in the C# programming language. Each year, the Advent of Code event presents a set of intriguing coding puzzles designed to test your problem-solving skills and algorithmic thinking.
53/100 healthActive repository
C#MIT
⑂ 0 forks◯ 0 issuesUpdated Apr 18, 2026
ISSC Code Repository This repository contains a collection of C programming exercises, coding challenges, and test solutions that I use for practicing and improving my C programming skills. The focus areas include basic C concepts, data structures, algorithms, and various problem-solving techniques. It's a personal space where I refine my coding
34/100 healthActive repository
CNo license
⑂ 0 forks◯ 0 issuesUpdated Oct 27, 2025