Skip to content

About

My daily-use competitive programming templates

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

120 Commits

Folders and files

Repository files navigation

Competitive Programming Templates 🏁

This repository contains my daily-use templates in C++ throughout my competitive programming journey.


📂 Content

Range Queries

  • 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

Graph Theory

  • BFS & DFS
  • DFS implementatin in details
  • BFS implementatin in details
  • Dijkstra
  • Floyed
  • Bellman
  • Kruksal

Trees

  • Kth Ancestor
  • LCA
  • Tree Diameter
  • Small To Large Merging
  • DSU On Tree "Sack"

Number Theory

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

Strings

  • Single Hashing
  • Double Hashing

Misc

  • Bits

Sorting Algorithms

  • Bubble Sort
  • Insertion Sort
  • Selection Sort
  • Quick Sort
  • Merge Sort
  • I will add more templates in the future

📝 Notes

  • All templates are written in C++.
  • They are optimized for competitive programming problems.
  • New templates will be added as I develop them.

Competitive Programming Sessions 🎈

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.

📚 Topics

1. Math Basics

Concepts Covered

  • Factorial & Overflow
  • GCD (Greatest Common Divisor)
  • LCM (Least Common Multiple)
  • Prime Checking
  • Prime Factorization
  • Mod Operations
  • Base Convertion

🔗 Resources


Acknowledgment

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.

About

My daily-use competitive programming templates

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages