This repository contains my daily-use templates in C++ throughout my competitive programming journey.
- Prefix & 2D Prefix & Partial & 2D Partial Sums
- Semgent Tree
- 2D Segment Tree
- Segment Tree with Lazy Propagation
- Iterative Segment Tree
- Merge Sort Tree
- Sparse Table
- SQRT Decomposition
- Fenwick Tree
- 2D Fenwick Tree
- Mo Algorithm
- BFS & DFS
- DFS implementatin in details
- BFS implementatin in details
- Dijkstra
- Floyed
- Bellman
- Kruksal
- Kth Ancestor
- LCA
- Tree Diameter
- Small To Large Merging
- DSU On Tree "Sack"
- Prime checking
- Divisors
- GCD & LCM
- Sieve
- Mod inverse
- Prime factors
- Factorial with mod
- Fast power & Mod power
- SPF (Smallest prime factor)
- Combinatorics (combination and permutation)
- Single Hashing
- Double Hashing
- Bits
- Bubble Sort
- Insertion Sort
- Selection Sort
- Quick Sort
- Merge Sort
- I will add more templates in the future
- All templates are written in C++.
- They are optimized for competitive programming problems.
- New templates will be added as I develop them.
Welcome to my Competitive Programming learning repository. This section contains my personal notes, presentations, and resources that I use to learn and improve my problem-solving skills.
Concepts Covered
- Factorial & Overflow
- GCD (Greatest Common Divisor)
- LCM (Least Common Multiple)
- Prime Checking
- Prime Factorization
- Mod Operations
- Base Convertion
🔗 Resources
- Session Recording: Watch Here
- Presentation Slides: View Here
These sessions were originally delivered within the ICPC SCU Community.
I would like to thank the community for providing a supportive learning environment and helping students grow in Competitive Programming.