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
↓ 3 callers
Function
query
query for a[k] on substr (l, ...)
Data Structures/Segment Tree Merging.cpp:95
↓ 3 callers
Method
query
Data Structures/Segment Tree 2D Dynamic.cpp:139
↓ 3 callers
Function
rec
Geometry/Voronoi Diagram.cpp:59
↓ 3 callers
Function
sc
Dynamic Programming Optimizations/Divide and Conquer Optimization.cpp:7
↓ 3 callers
Function
sc
Strings/Number of Palindromes in Range.cpp:143
↓ 3 callers
Function
sgn
Geometry/Voronoi Diagram.cpp:5
↓ 3 callers
Function
sign
Geometry/Delaunay Triangulation.cpp:6
↓ 3 callers
Function
simpson
Math/Integration (Simpsons).cpp:17
↓ 3 callers
Method
size
Graph Theory/Three Edge Connectivity.cpp:12
↓ 3 callers
Function
small_angle
Geometry/Geometry 3D.cpp:93
↓ 3 callers
Function
splice
Geometry/Voronoi Diagram.cpp:49
↓ 3 callers
Function
splice
Geometry/Delaunay Triangulation.cpp:50
↓ 3 callers
Method
swap
Miscellaneous/BigInt.cpp:78
↓ 3 callers
Function
try_voronoi_vertex
Geometry/Voronoi Diagram.cpp:256
↓ 3 callers
Method
undo
Data Structures/Queue Undo Trick.cpp:54
↓ 3 callers
Function
upd
Graph Theory/Dijkstra on Segment Tree.cpp:25
↓ 3 callers
Method
upd
Miscellaneous/Parallel Binary Search.cpp:33
↓ 3 callers
Method
upd
Data Structures/Permutation Tree.cpp:37
↓ 3 callers
Method
update_all
Data Structures/Top Tree.cpp:155
↓ 3 callers
Function
yo
Strings/Cyclic LCS.cpp:9
↓ 2 callers
Function
BerlekampMassey
Math/BerleKamp Massey.cpp:40
↓ 2 callers
Function
Find
Graph Theory/Gomory Hu Tree of Planar Graph.cpp:16
↓ 2 callers
Function
Lagrange
p = first at least n + 1 points: a, a+d, ..., a+n*d of the n degree polynomial, returns f(k)
Math/Polynomial Sum.cpp:53
↓ 2 callers
Function
MatrixRecurrence
Math/Determinant of Sparse Matrix.cpp:146
↓ 2 callers
Function
POW
Math/q Binomial.cpp:9
↓ 2 callers
Function
POW
Math/NTT Online.cpp:9
↓ 2 callers
Function
POW
Math/NTT.cpp:9
↓ 2 callers
Function
POW
Math/NTT 2D.cpp:10
↓ 2 callers
Function
POW
Math/Matrix Exponentiation With Polynomial Coefficients.cpp:9
↓ 2 callers
Function
POW
Number Theory/Sum of nCi over a Fixed Congruence Class.cpp:10
↓ 2 callers
Function
POW
Number Theory/Stirling Number of the Second Kind for Fixed n.cpp:9
↓ 2 callers
Method
_Find_first
Miscellaneous/Bitset Custom.cpp:126
↓ 2 callers
Method
abs
Miscellaneous/BigInt.cpp:446
↓ 2 callers
Function
add
Geometry/Convex Hull Dynamic.cpp:50
↓ 2 callers
Function
add
Number Theory/Mobius Function.cpp:19
↓ 2 callers
Function
add
Data Structures/DSU on Tree.cpp:16
↓ 2 callers
Function
add
Graph Theory/Boruvka's Algorithm.cpp:8
↓ 2 callers
Function
add
Graph Theory/Kirchoffs Theorem.cpp:83
↓ 2 callers
Method
add
Dynamic Programming Optimizations/Convex Hull Trick.cpp:22
↓ 2 callers
Method
add
Dynamic Programming Optimizations/Dynamic Convex Hull Trick.cpp:38
↓ 2 callers
Function
add_constraint
C[] = co-efficients of the constraints (LHS), lim = limit in RHS cmp = EQUAL for C[] = lim, LESSEQ for C[] <= lim, GREATEQ for C[] >= lim
Math/Simplex Algorithm.cpp:96
↓ 2 callers
Function
add_edge
Graph Theory/Min Cut in a Planar Graph.cpp:32
↓ 2 callers
Method
add_edge
Miscellaneous/Matroid Intersection Color Graphic Matroid.cpp:37
↓ 2 callers
Method
add_edge
Graph Theory/Randomized Matching Weighted.cpp:28
↓ 2 callers
Method
add_edge
Graph Theory/Chinese Postman Problem.cpp:28
↓ 2 callers
Method
add_edge
Graph Theory/Tree Isomorphism.cpp:43
↓ 2 callers
Method
add_edge
Graph Theory/Unique Min Cut.cpp:23
↓ 2 callers
Function
add_left
Data Structures/MOs Algorithm.cpp:15
↓ 2 callers
Method
add_line
Dynamic Programming Optimizations/Persistent Li Chao Tree.cpp:74
↓ 2 callers
Function
add_mod
Number Theory/Number of Solutions to x^2 = 1 mod m.cpp:10
↓ 2 callers
Function
add_mod
Number Theory/Pisano Period.cpp:20
↓ 2 callers
Function
add_right
Data Structures/MOs Algorithm.cpp:20
↓ 2 callers
Method
add_vector
Miscellaneous/Matroid Intersection Color Linear Matroid.cpp:20
↓ 2 callers
Function
angle_on_sphere
small angle between spherical segments ab and ac assume that the sphere is centered at the origin all points a, b, c are on the sphere
Geometry/Geometry 3D.cpp:621
↓ 2 callers
Function
backtrack
returns the count of numbers <= n s.t. each has exactly k divisors and isn't divisible by the first 'last' primes pretty fast!
Number Theory/K Divisors.cpp:93
↓ 2 callers
Method
backtrack
how many last added edges you want to erase
Data Structures/Dynamic Connectivity Problem.cpp:67
↓ 2 callers
Method
build
Data Structures/Persistent UnionFind.cpp:12
↓ 2 callers
Method
build
Graph Theory/Long Path Decomposition.cpp:45
↓ 2 callers
Function
build_tree
Data Structures/KD Tree.cpp:45
↓ 2 callers
Method
can_exchange
can we insert elements[inserted_id] and remove elements[removed_id] without breaking independence?
Miscellaneous/Matroid Intersection Color Graphic Matroid.cpp:65
↓ 2 callers
Method
can_exchange
can we insert elements[inserted_id] and remove elements[removed_id] without breaking independence?
Miscellaneous/Matroid Intersection Color Linear Matroid.cpp:57
↓ 2 callers
Method
can_insert
can we insert elements[id] without breaking independence?
Miscellaneous/Matroid Intersection Color Graphic Matroid.cpp:59
↓ 2 callers
Method
can_insert
can we insert elements[id] without breaking independence?
Miscellaneous/Matroid Intersection Color Linear Matroid.cpp:51
↓ 2 callers
Function
cdiv
Number Theory/Smallest Nonnegative Integer x s.t. l <= ax % p <= r.cpp:34
↓ 2 callers
Function
circle_line_intersection
compute intersection of line through points a and b with circle centered at c with radius r > 0
Geometry/Geometry 2D.cpp:317
↓ 2 callers
Method
clone
Data Structures/Persistent Trie.cpp:22
↓ 2 callers
Function
cmp
Data Structures/MOs with DSU.cpp:130
↓ 2 callers
Method
coef
Math/Polynomial.cpp:163
↓ 2 callers
Method
coef
Math/Subset Sum Problem.cpp:143
↓ 2 callers
Method
coef
Math/Faulhaber Formula Fastest.cpp:143
↓ 2 callers
Method
coef
Number Theory/Bell Number.cpp:163
↓ 2 callers
Method
coef
Number Theory/Stirling Number of the Second Kind for Fixed k.cpp:163
↓ 2 callers
Function
combine
Math/Linear Recurrence.cpp:41
↓ 2 callers
Function
contract
Graph Theory/Dynamic MST Offline.cpp:45
↓ 2 callers
Function
cost
dp[i][j]=minimum cost for dividing [1...j] into i parts
Dynamic Programming Optimizations/Divide and Conquer Optimization.cpp:25
↓ 2 callers
Function
count_on_bits
Returns the count of set (1) bits in binary representation of x
Basics/Bitwise Operations.cpp:20
↓ 2 callers
Function
cross
Geometry/All Pair Segment Intersection.cpp:75
↓ 2 callers
Method
cyclic_shift
it will cyclic right shift the array k times so for k=1, a[qL]=a[qR] and all positions from ql+1 to qR will have values from previous a[qL] to a[qR-1]
Data Structures/Implicit Treap.cpp:284
↓ 2 callers
Function
decompose
decompose into cycles
Miscellaneous/Permutation Cycles.cpp:9
↓ 2 callers
Function
decompose
Miscellaneous/K-th Root of a Permutation.cpp:6
↓ 2 callers
Function
dfs
Graph Theory/Centroids.cpp:7
↓ 2 callers
Function
dist2
Geometry/Voronoi Diagram.cpp:142
↓ 2 callers
Function
dist_from_point_to_polygon
minimum distance from a point to a convex polygon it assumes point lie strictly outside the polygon
Geometry/Geometry 2D.cpp:934
↓ 2 callers
Function
dist_from_point_to_ray
minimum distance from point c to ray (starting point a and direction vector b)
Geometry/Geometry 2D.cpp:248
↓ 2 callers
Function
distance_from_triangle_to_point
Geometry/Geometry 3D.cpp:265
↓ 2 callers
Function
dot
Geometry/Delaunay Triangulation.cpp:124
↓ 2 callers
Function
ensure_base
Math/NTT With Any Prime MOD.cpp:19
↓ 2 callers
Function
ensure_base
Math/Polynomial.cpp:19
↓ 2 callers
Function
ensure_base
Math/Subset Sum Problem.cpp:19
↓ 2 callers
Function
ensure_base
Math/Faulhaber Formula Fastest.cpp:19
↓ 2 callers
Function
ensure_base
Math/Linear Recurrence Fastest.cpp:19
↓ 2 callers
Function
ensure_base
Math/Lagrange Interpolation with Polynomial Extraction.cpp:19
↓ 2 callers
Function
ensure_base
Math/Polynomial with Binomial Coefficients.cpp:19
↓ 2 callers
Function
ensure_base
Math/NTT Online (D&C).cpp:19
↓ 2 callers
Function
ensure_base
Number Theory/Bell Number.cpp:19
↓ 2 callers
Function
ensure_base
Number Theory/Stirling Number of the Second Kind for Fixed k.cpp:19
↓ 2 callers
Function
ensure_base
Number Theory/Sum of C(a(i), k) for each k from 1 to n.cpp:19
↓ 2 callers
Method
eval_y
Geometry/All Pair Segment Intersection.cpp:118
↓ 2 callers
Function
extended
Math/Linear Recurrence With Polynomial Coefficients.cpp:25
↓ 2 callers
Function
extended_euclid
Number Theory/nCr Modulo Any Mod.cpp:16
← previous
next →
401–500 of 3,514, ranked by callers