Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ShahjalalShohag/code-library
/ functions
Functions
3,514 in github.com/ShahjalalShohag/code-library
⨍
Functions
3,514
◇
Types & classes
351
↓ 1 callers
Method
pop
Data Structures/Persistent Queue.cpp:79
↓ 1 callers
Method
pop
Data Structures/DSU with Rollbacks.cpp:85
↓ 1 callers
Method
pop
Data Structures/Queue Undo Trick.cpp:91
↓ 1 callers
Method
pop
Data Structures/Persistent Array.cpp:79
↓ 1 callers
Function
pow
Math/NTT With Any Prime MOD.cpp:103
↓ 1 callers
Method
pow
Math/Lagrange Interpolation.cpp:18
↓ 1 callers
Method
pow
Math/Vandermonde Matrix.cpp:17
↓ 1 callers
Method
pow
Math/FWHT.cpp:54
↓ 1 callers
Method
pow
Math/Matrix Exponentiation.cpp:50
↓ 1 callers
Method
pow
Math/Matrix Exponentiation With Polynomial Coefficients.cpp:135
↓ 1 callers
Method
pow
Number Theory/Stirling Number of the Second Kind for Fixed n.cpp:59
↓ 1 callers
Method
pow
Number Theory/Generalized Floor Sum of Arithmetic Progressions.cpp:30
↓ 1 callers
Method
pow
Number Theory/Sum of Arithmetic Progression Powers Divided.cpp:29
↓ 1 callers
Method
pow
Number Theory/Sum of nCi for a Fixed Large n.cpp:68
↓ 1 callers
Method
pow
Data Structures/Segment Tree with Arithmetic Progression.cpp:18
↓ 1 callers
Method
pow
Data Structures/Segment Tree Persistent Lazy.cpp:18
↓ 1 callers
Method
pow
Graph Theory/Tree Isomorphism.cpp:17
↓ 1 callers
Method
pow
Graph Theory/Counting Labeled Graphs.cpp:25
↓ 1 callers
Function
pow_mod
Number Theory/Number of Solutions to x^2 = 1 mod m.cpp:19
↓ 1 callers
Function
pow_mod
Number Theory/Miller Rabin.cpp:15
↓ 1 callers
Function
pow_mod
Number Theory/Pollard Rho.cpp:19
↓ 1 callers
Function
pow_mod
Number Theory/Pisano Period.cpp:29
↓ 1 callers
Function
power
Miscellaneous/BigInt.cpp:461
↓ 1 callers
Function
power
cycle decomposition of the k-th power of p
Miscellaneous/K-th Root of a Permutation.cpp:32
↓ 1 callers
Function
power
Math/Finite Field Arithmetic Binary.cpp:21
↓ 1 callers
Function
power
Math/Determinant under Prime Modulo.cpp:6
↓ 1 callers
Function
power
Game Theory/Alpha Beta Pruning.cpp:6
↓ 1 callers
Function
power
Basics/Binary Exponentiation.cpp:6
↓ 1 callers
Function
power
Number Theory/Prime Number System.cpp:17
↓ 1 callers
Function
power
Number Theory/Primitive Root.cpp:15
↓ 1 callers
Function
power
Number Theory/Smallest Number Having Exactly K Divisors.cpp:6
↓ 1 callers
Function
power
a^k % x^n
Number Theory/Stirling Number of the First Kind for Fixed k.cpp:48
↓ 1 callers
Function
power
Number Theory/Power Tower.cpp:24
↓ 1 callers
Function
power
Number Theory/LCM of Fibonacci Numbers.cpp:6
↓ 1 callers
Function
power
Graph Theory/Kirchoffs Theorem.cpp:9
↓ 1 callers
Function
pre
Math/Polynomial with Binomial Coefficients.cpp:112
↓ 1 callers
Function
pre
Math/NTT Online (D&C).cpp:103
↓ 1 callers
Function
pre
Graph Theory/Counting Labeled Graphs.cpp:45
↓ 1 callers
Function
prec
Math/q Binomial.cpp:86
↓ 1 callers
Function
prec
Strings/String Hashing With Updates and Reverse.cpp:31
↓ 1 callers
Function
prec
Basics/Binomial Coefficients.cpp:7
↓ 1 callers
Function
prec
N > k1 + k2
Number Theory/Generalized Floor Sum of Arithmetic Progressions.cpp:74
↓ 1 callers
Function
prec
N > k1 + k2
Number Theory/Sum of Arithmetic Progression Powers Divided.cpp:73
↓ 1 callers
Function
precomp
Math/Polynomial Factorization.cpp:58
↓ 1 callers
Function
precompute
Math/q Binomial.cpp:13
↓ 1 callers
Function
precompute
Math/NTT Online.cpp:13
↓ 1 callers
Function
precompute
Math/NTT.cpp:13
↓ 1 callers
Function
precompute
Math/NTT 2D.cpp:14
↓ 1 callers
Function
precompute
Math/Matrix Exponentiation With Polynomial Coefficients.cpp:13
↓ 1 callers
Function
precompute
Number Theory/Sum of nCi over a Fixed Congruence Class.cpp:14
↓ 1 callers
Function
precompute
Number Theory/Stirling Number of the Second Kind for Fixed n.cpp:13
↓ 1 callers
Function
precompute
Number Theory/Stirling Number of the First Kind for Fixed k.cpp:13
↓ 1 callers
Function
prefix_function
Strings/Prefix Automaton.cpp:15
↓ 1 callers
Method
prev
Geometry/Voronoi Diagram.cpp:33
↓ 1 callers
Method
prev
Geometry/Delaunay Triangulation.cpp:34
↓ 1 callers
Function
primitive_root
p is prime
Number Theory/Discrete Root.cpp:14
↓ 1 callers
Function
primitive_root
g is a primitive root modulo p if and only if for any integer a such that gcd(a, p) = 1, there exists an integer k such that: g^k = a(mod p). primitiv
Number Theory/Primitive Root.cpp:27
↓ 1 callers
Method
print
Data Structures/Segment Tree Persistent Lazy.cpp:97
↓ 1 callers
Method
print_array
print current array values serially
Data Structures/Implicit Treap.cpp:348
↓ 1 callers
Function
print_nodes
Data Structures/Treap persistent.cpp:92
↓ 1 callers
Function
print_on_bits
Prints the positions of all set (1) bits in binary representation of x
Basics/Bitwise Operations.cpp:10
↓ 1 callers
Method
process
Data Structures/Static to Dynamic Trick.cpp:15
↓ 1 callers
Function
progression_sum
Computes x^s + x^{s+d} + x^{s+2d} + ... + x^{s+(n-1)d}
Number Theory/Sqrt Decomposition of Mod of Arithmetic Progression.cpp:33
↓ 1 callers
Function
project_from_point_to_line
projection point c onto line through a and b assuming a != b
Geometry/Geometry 2D.cpp:131
↓ 1 callers
Function
project_from_point_to_seg
minimum distance point from point c to segment ab that lies on segment ab
Geometry/Geometry 2D.cpp:153
↓ 1 callers
Function
proper_intersection
Geometry/Geometry 3D.cpp:578
↓ 1 callers
Method
push
Data Structures/Persistent Queue.cpp:73
↓ 1 callers
Method
push
Data Structures/Venice Technique.cpp:4
↓ 1 callers
Method
push
Data Structures/Persistent Array.cpp:73
↓ 1 callers
Method
push_links
Strings/Aho Corasick All Pair Occurrence Relation.cpp:25
↓ 1 callers
Method
push_links
Strings/Aho Corasick Dynamic.cpp:33
↓ 1 callers
Function
query
Data Structures/Persistent Trie.cpp:47
↓ 1 callers
Function
query
Data Structures/Dynamic Connectivity Problem.cpp:97
↓ 1 callers
Function
query
Data Structures/Sparse Table.cpp:16
↓ 1 callers
Function
query
Data Structures/Reachability Tree.cpp:95
↓ 1 callers
Function
query
Data Structures/MOs Online.cpp:28
↓ 1 callers
Method
query
(slope dec+query min), (slope inc+query max) -> x increasing (slope dec+query max), (slope inc+query min) -> x decreasing
Dynamic Programming Optimizations/Convex Hull Trick.cpp:39
↓ 1 callers
Method
query
Dynamic Programming Optimizations/Dynamic Convex Hull Trick.cpp:48
↓ 1 callers
Method
query
Dynamic Programming Optimizations/Li Chao Tree.cpp:83
↓ 1 callers
Method
query
Dynamic Programming Optimizations/Persistent Li Chao Tree.cpp:78
↓ 1 callers
Method
query
Miscellaneous/Parallel Binary Search.cpp:27
↓ 1 callers
Method
query
maximum sum of linearly independent vectors
Math/Basis Vector ft Weighted Linearly Independent Vectors.cpp:30
↓ 1 callers
Method
query
Strings/Suffix Automaton Distinct Substring Queries in Range.cpp:42
↓ 1 callers
Method
query
Data Structures/4D MO.cpp:27
↓ 1 callers
Method
query
Data Structures/Trie.cpp:29
↓ 1 callers
Method
query
Data Structures/Segment Tree Persistent.cpp:40
↓ 1 callers
Method
query
Data Structures/Segment Tree with Arithmetic Progression.cpp:86
↓ 1 callers
Method
query
Data Structures/Permutation Tree.cpp:50
↓ 1 callers
Method
query
Data Structures/BIT 2D with Range Update and Range Query.cpp:46
↓ 1 callers
Method
query
Data Structures/SQRT Tree.cpp:107
↓ 1 callers
Method
query
Data Structures/Disjoint Sparse Table.cpp:39
↓ 1 callers
Method
query
layer = LOG - 1 return sum of a[p ^ x] over all i <= p <= j O(LOG)
Data Structures/XOR Segment Tree.cpp:54
↓ 1 callers
Method
query
returns answer for corresponding types of query
Data Structures/Implicit Treap.cpp:233
↓ 1 callers
Method
query
Graph Theory/LCA in O(1).cpp:18
↓ 1 callers
Method
query
Graph Theory/Path Union.cpp:87
↓ 1 callers
Method
query_sum
range sum query
Data Structures/Segment Tree Beats.cpp:268
↓ 1 callers
Function
range_mul
(x+1)*(x+2)*(x+3)...(x+n) O(n log n) only for ntt friendly primes otherwise use divide and conquer in O(n log^2 n)
Number Theory/Stirling Number of the First Kind for Fixed n.cpp:67
↓ 1 callers
Function
ray_ray_intersection
starting point as and direction vector ad
Geometry/Geometry 2D.cpp:255
↓ 1 callers
Function
read
Data Structures/MOs with DSU.cpp:117
↓ 1 callers
Method
read
Miscellaneous/BigInt.cpp:92
← previous
next →
1,201–1,300 of 3,514, ranked by callers