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
↓ 2 callers
Function
f
returns the number of distinct values of (a^k % p^cnt) over all integers a (p is prime) can be optimized by precalculating powers current complexity:
Number Theory/Number of Distinct Kth Powers Modulo n.cpp:15
↓ 2 callers
Method
fact
Math/Faulhaber Formula Fastest.cpp:375
↓ 2 callers
Function
factorize
Number Theory/Pisano Period.cpp:85
↓ 2 callers
Function
falling
(x + n)(x + n - 1)...(x + n - k + 1);
Math/Number of Solutions of A Equation MITM.cpp:85
↓ 2 callers
Function
falling
(x + n)(x + n - 1)...(x + n - k + 1);
Number Theory/Number of Solutions to a Basic Linear Algebraic Equation with Variable Upper Bound Constraints.cpp:83
↓ 2 callers
Function
fib
Number Theory/LCM of Fibonacci Numbers.cpp:15
↓ 2 callers
Method
find
Miscellaneous/Matroid Intersection Color Graphic Matroid.cpp:25
↓ 2 callers
Method
find
Data Structures/Implicit Treap.cpp:354
↓ 2 callers
Function
find_
Graph Theory/Dominator Tree.cpp:10
↓ 2 callers
Method
finv
Math/Faulhaber Formula Fastest.cpp:376
↓ 2 callers
Method
finv
Math/Lagrange Interpolation with Polynomial Extraction.cpp:149
↓ 2 callers
Function
floor_sum
Number Theory/Sum of Arithmetic Progression Modular and Divided.cpp:14
↓ 2 callers
Function
fpow
Number Theory/Fermats Theorem on Sum of Two Squares.cpp:15
↓ 2 callers
Method
gaussian_elimination
Miscellaneous/Matroid Intersection Color Linear Matroid.cpp:29
↓ 2 callers
Function
gen
(a, x, y, i, cur)
Number Theory/Pells Equation.py:20
↓ 2 callers
Function
get
Math/Number of Solutions of A Equation MITM.cpp:69
↓ 2 callers
Function
get
Number Theory/Number of Solutions to a Basic Linear Algebraic Equation with Variable Upper Bound Constraints.cpp:67
↓ 2 callers
Function
get
Data Structures/MOs with Update.cpp:38
↓ 2 callers
Method
get
Data Structures/MOs Online.cpp:18
↓ 2 callers
Function
get_angle
Geometry/Geometry 3D.cpp:49
↓ 2 callers
Method
get_hash
Strings/String Hashing.cpp:53
↓ 2 callers
Method
get_hash
Strings/String Hashing 2D.cpp:35
↓ 2 callers
Method
get_hull
only works for whole hull
Geometry/Onion Decomposition.cpp:93
↓ 2 callers
Function
get_id
Number Theory/Min_25 Sieve.cpp:73
↓ 2 callers
Function
get_id
Graph Theory/Kirchoffs Theorem.cpp:90
↓ 2 callers
Function
get_id
Graph Theory/L R Flow with Dinic.cpp:127
↓ 2 callers
Method
get_lcp
Strings/Suffix Array Isomorphic.cpp:91
↓ 2 callers
Function
get_perm
Number Theory/Factoradic Number System.cpp:25
↓ 2 callers
Function
half
Dynamic Programming Optimizations/DP on Convex Hulls.cpp:31
↓ 2 callers
Function
half
Geometry/Voronoi Diagram.cpp:163
↓ 2 callers
Method
independent_with
Miscellaneous/Matroid Intersection Color Graphic Matroid.cpp:47
↓ 2 callers
Method
independent_with
Miscellaneous/Matroid Intersection Color Linear Matroid.cpp:40
↓ 2 callers
Function
induced_sort
Strings/Suffix Array.cpp:7
↓ 2 callers
Method
init
Data Structures/MOs with DSU.cpp:52
↓ 2 callers
Method
insert
Data Structures/Segment Tree 2D Dynamic.cpp:77
↓ 2 callers
Function
insub
Data Structures/Centroid Decomposition Persistent.cpp:95
↓ 2 callers
Function
insub
Data Structures/Binarizing a Tree.cpp:92
↓ 2 callers
Function
intersect1d
Geometry/All Pair Segment Intersection.cpp:123
↓ 2 callers
Method
intersection
Geometry/Geometry 2D.cpp:1064
↓ 2 callers
Method
intersection
Geometry/Half Plane Intersection.cpp:74
↓ 2 callers
Method
inv
Math/Hafnian of a Matrix.cpp:19
↓ 2 callers
Method
inv
Math/Lagrange Interpolation.cpp:26
↓ 2 callers
Method
inv
Math/FWHT in Ternary Base.cpp:26
↓ 2 callers
Method
inv
Math/Polynomial Sum.cpp:47
↓ 2 callers
Method
inv
Math/Number of Solutions of A Equation MITM.cpp:19
↓ 2 callers
Method
inv
Math/Lagrange Interpolation with Polynomial Extraction.cpp:150
↓ 2 callers
Method
inv
Math/Linear Recurrence.cpp:26
↓ 2 callers
Method
inv
Math/Modint.cpp:19
↓ 2 callers
Method
inv
Number Theory/Partition Function.cpp:19
↓ 2 callers
Method
inv
Number Theory/Min_25 Sieve.cpp:21
↓ 2 callers
Method
inv
Number Theory/Combinatorics Basics.cpp:46
↓ 2 callers
Method
inv
Number Theory/Dirichlet Convolution.cpp:22
↓ 2 callers
Method
inv
Number Theory/Number of Solutions to a Basic Linear Algebraic Equation.cpp:47
↓ 2 callers
Method
inv
Number Theory/Number of Solutions to a Basic Linear Algebraic Equation with Variable Upper Bound Constraints.cpp:19
↓ 2 callers
Method
inv
Number Theory/Prefix Sum Queries of nCi.cpp:47
↓ 2 callers
Method
inv
Number Theory/Lucas Theorem.cpp:48
↓ 2 callers
Method
inv
Data Structures/Segment Tree with Arithmetic Progression.cpp:19
↓ 2 callers
Method
inv
Data Structures/Segment Tree Persistent Lazy.cpp:19
↓ 2 callers
Method
inv
Graph Theory/Tree Isomorphism.cpp:18
↓ 2 callers
Method
inv
Graph Theory/Number of DAG.cpp:26
↓ 2 callers
Method
inv
Graph Theory/Hafnian of a Matrix.cpp:19
↓ 2 callers
Method
inv
Graph Theory/Chromatic Polynoimial.cpp:26
↓ 2 callers
Method
inv
Graph Theory/Counting Labeled Graphs.cpp:33
↓ 2 callers
Function
inverse
Number Theory/Discrete Log.cpp:43
↓ 2 callers
Function
inverse
Number Theory/nCr Modulo Any Mod.cpp:27
↓ 2 callers
Method
is_palindrome
Strings/String Hashing With Updates and Reverse.cpp:100
↓ 2 callers
Function
is_parallel
Geometry/Geometry 3D.cpp:208
↓ 2 callers
Function
is_prime
Number Theory/Prime Factorization Fastest.cpp:45
↓ 2 callers
Function
isqrt
Number Theory/Fermats Theorem on Sum of Two Squares.cpp:24
↓ 2 callers
Function
kth
Data Structures/LCA.cpp:25
↓ 2 callers
Function
kth
Graph Theory/LCA.cpp:25
↓ 2 callers
Function
lca
Data Structures/MOs on tree.cpp:19
↓ 2 callers
Function
lca
Data Structures/LCA.cpp:18
↓ 2 callers
Function
lca
Graph Theory/Virtual Tree.cpp:21
↓ 2 callers
Function
lcm
Number Theory/Prime Basis.cpp:97
↓ 2 callers
Function
le
Geometry/Point Location.cpp:13
↓ 2 callers
Method
link
Data Structures/Link Cut Tree.cpp:106
↓ 2 callers
Method
log
Math/Polynomial.cpp:272
↓ 2 callers
Method
log
Math/Faulhaber Formula Fastest.cpp:249
↓ 2 callers
Function
lt
Geometry/Point Location.cpp:16
↓ 2 callers
Method
meld_path_end
Data Structures/Top Tree.cpp:368
↓ 2 callers
Method
merge
Graph Theory/Kirchoffs Theorem.cpp:65
↓ 2 callers
Function
mod_sum
\sum_{i = 0}^{n - 1}{(a + d * i) % m}
Number Theory/Floor Sum of Arithmetic Progressions.cpp:17
↓ 2 callers
Method
mul_xk
modulo by x^k
Math/Faulhaber Formula Fastest.cpp:184
↓ 2 callers
Function
mult
Number Theory/Fermats Theorem on Sum of Two Squares.cpp:7
↓ 2 callers
Function
multiply
eq = 0: 4 FFTs in total eq = 1: 3 FFTs in total
Math/NTT With Any Prime MOD.cpp:53
↓ 2 callers
Function
multiply
Number Theory/Sum of nCi over a Fixed Congruence Class.cpp:37
↓ 2 callers
Function
multiply
Number Theory/Stirling Number of the First Kind for Fixed k.cpp:36
↓ 2 callers
Method
ncr
Number Theory/Number of Solutions to a Basic Linear Algebraic Equation.cpp:48
↓ 2 callers
Function
nega_binary
Miscellaneous/Negative Base (Binary).cpp:14
↓ 2 callers
Method
next
Geometry/Voronoi Diagram.cpp:34
↓ 2 callers
Method
next
Geometry/Delaunay Triangulation.cpp:35
↓ 2 callers
Method
norm
Geometry/Voronoi Diagram.cpp:130
↓ 2 callers
Method
norm
Geometry/Geometry 3D.cpp:25
↓ 2 callers
Method
norm
Geometry/Half Plane Intersection.cpp:22
↓ 2 callers
Method
norm
Geometry/Half Plane Intersection Dynamic.cpp:22
↓ 2 callers
Method
norm
Geometry/All Pair Segment Intersection.cpp:47
↓ 2 callers
Function
op
Miscellaneous/Space Remover For Codebook.cpp:4
↓ 2 callers
Function
orientation
Dynamic Programming Optimizations/DP on Convex Hulls.cpp:27
↓ 2 callers
Function
p_g
Number Theory/Dirichlet Convolution.cpp:74
← previous
next →
501–600 of 3,514, ranked by callers