About | Codeforces | GitHub |
---|
A collection of CPP Snippets to aid in competetive programming.
This site was auto generated with the help of marked.
curl -L "https://raw.githubusercontent.com/theSoberSobber/CP-Snippets/main/snippets.json" > snippets.json
- DSU : DSU
- arr-inp : arr-inp
- arr-pref : arr-pref
- binpow : binpow
- binsearch : binsearch
- bp : bp
- clock_for_TL : clock
- combination-non-mod : combination-non-mod
- combination-small : combination-small
- combination : combination
- crt : crt
- cute-lcm : [a,b,c]=abc(a,b,c)/(a,b)(b,c)(c,a), where []=lcm adn ()=gcd or [a,b,c]=abc/gcd(ab,bc,ca)
- derangments : derangments
- dfs : weird ass dfs
- diophantine : linear diophantine
- dsu-rr : dsu-rr
- easy_seive : easy_seive
- euclid : euclid
- explanation_binsearch : explanation_binsearch
- fac : fac
- factorization : factorization
- fenwick : binary indexed tree
- file_io : for coding competetions
- freq-map : freq-map
- gr-inp-Fwt : graph input weight
- gr-inp : graph input
- highest_exponent : power_in_fac
- interactive : essential measures for interactive problems
- ip-overloads : I/O Overloads that I don't use
- kadane : max subarray sum O(n)
- kosaraju : kosaraju
- kruskal : kruskal
- lambda_function : lambda_function
- lca : LCA path satisfying some condition
- log : log
- matrix : matrix
- mint : modular integer
- modpow : modpow
- pbds : pbds
- pq : pq
- prime-related-stuff : implements prime fac, fac list and is_prime in both space optimized and time optimized ways
- re-write : a bunch of re and write functions based on template meta programming heklpful in cp.
- recur-binsearch : recursive binary search implementation to make intution easier ig
- recur-modpow : recur-modpow
- rng : rng
- rr-segtree : best segtree
- segtree : sextree
- seive : seive
- tokenizer : tokenizer that has no use
- totient-seive : totient-seive
- totient : totient
- trie : trie
- troll : troll
- two-sat (kosaraju) : two-sat (kosaraju)
- xor-basis : xor-basis