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
↓ 4 callers
Method
rot
Data Structures/Top Tree.cpp:162
↓ 4 callers
Function
sign
Geometry/Point Location.cpp:17
↓ 4 callers
Method
size
Data Structures/Square Root Decomposition With Reverse Update.cpp:28
↓ 4 callers
Function
split
split (l, ...) so that rb[l] = r
Data Structures/Segment Tree Merging.cpp:75
↓ 4 callers
Method
sum
sum of numbers in [l ,r] less than or equal to k
Strings/Number of Palindromes in Range.cpp:106
↓ 4 callers
Function
try_voronoi_edge
Geometry/Voronoi Diagram.cpp:262
↓ 4 callers
Method
upd
update the ith value if the rth array by x and return the new root of the array
Data Structures/Persistent UnionFind.cpp:39
↓ 4 callers
Function
yo
par = parity of the number of kth bits which are on f = if we have offed any kth bit
Miscellaneous/XOR Equation Arbitrary Range.cpp:31
↓ 3 callers
Function
C
Data Structures/Segment Tree with Arithmetic Progression.cpp:96
↓ 3 callers
Method
F
Geometry/Voronoi Diagram.cpp:31
↓ 3 callers
Method
F
Geometry/Delaunay Triangulation.cpp:32
↓ 3 callers
Function
POW
Number Theory/Stirling Number of the First Kind for Fixed n.cpp:9
↓ 3 callers
Function
add
Math/Finite Field Arithmetic Binary.cpp:9
↓ 3 callers
Function
add
Math/Hafnian of a Matrix.cpp:36
↓ 3 callers
Function
add
Data Structures/MOs with DSU.cpp:136
↓ 3 callers
Method
add
(!u | v | !w) -> (u, 0, v, 1, w, 0)
Graph Theory/3 SAT.cpp:30
↓ 3 callers
Method
add_edge
Graph Theory/Min Cost Max Flow.cpp:40
↓ 3 callers
Method
add_edge
Graph Theory/Edge Coloring Bipartite Graph Faster.cpp:30
↓ 3 callers
Function
build
leaf node is a cut node
Data Structures/Permutation Tree.cpp:81
↓ 3 callers
Function
calc
given an odd prime p returns (a, b) s.t. a^2 + b^2 = p p % 4 = 1, otherwise no solution exists
Number Theory/Fermats Theorem on Sum of Two Squares.cpp:42
↓ 3 callers
Function
check_kth_bit
Checks if kth bit of x is set (1) or not (0)
Basics/Bitwise Operations.cpp:5
↓ 3 callers
Function
circle
Geometry/Voronoi Diagram.cpp:186
↓ 3 callers
Function
combine
Math/BerleKamp Massey.cpp:58
↓ 3 callers
Function
compute
Geometry/Voronoi Diagram.cpp:249
↓ 3 callers
Function
cross
Dynamic Programming Optimizations/DP on Convex Hulls.cpp:26
↓ 3 callers
Function
cross
Geometry/Geometry 3D.cpp:39
↓ 3 callers
Function
cut
returns a vector with the vertices of a polygon with everything to the left of the line going from a to b cut away.
Geometry/Geometry 2D.cpp:821
↓ 3 callers
Function
dfs
Graph Theory/Maximum Density Subgraph.cpp:81
↓ 3 callers
Function
dist
Geometry/Geometry 3D.cpp:38
↓ 3 callers
Function
dist2
Geometry/Closest Pair of Points.cpp:7
↓ 3 callers
Function
distance_from_segment_to_point
segment ab to point c
Geometry/Geometry 3D.cpp:260
↓ 3 callers
Method
do_flip_path
Data Structures/Top Tree.cpp:39
↓ 3 callers
Method
do_path_increment
Data Structures/Top Tree.cpp:55
↓ 3 callers
Function
dot
Geometry/Half Plane Intersection.cpp:33
↓ 3 callers
Function
dot
Geometry/All Pair Segment Intersection.cpp:66
↓ 3 callers
Method
expose
Data Structures/Top Tree.cpp:354
↓ 3 callers
Function
extreme_vertex
id of the vertex having maximum dot product with z polygon must need to be convex top - upper right vertex for minimum dot product negate z and return
Geometry/Geometry 2D.cpp:719
↓ 3 callers
Function
f
Miscellaneous/Fraction Binary Search.cpp:10
↓ 3 callers
Function
factmod
returns n! % mod without taking all the multiple factors of p into account that appear in the factorial mod = multiple of p O(mod) * log(n)
Number Theory/nCr Modulo Any Mod.cpp:36
↓ 3 callers
Function
factoradic_order
Number Theory/Factoradic Number System.cpp:43
↓ 3 callers
Function
farthest
Graph Theory/Tree Diameter.cpp:7
↓ 3 callers
Function
fft
Math/Cyclic Convolution.cpp:17
↓ 3 callers
Function
fft
Strings/String Matching With FFT.cpp:22
↓ 3 callers
Function
fft
Graph Theory/Number of Paths of Each Length in a Tree.cpp:20
↓ 3 callers
Method
find
Graph Theory/Boruvka's Algorithm.cpp:48
↓ 3 callers
Method
find
Graph Theory/Gomory Hu Tree.cpp:108
↓ 3 callers
Function
floor_sum
\sum_{i = 0}^{n - 1}{(a + d * i) / m}, O(log m)
Number Theory/Linear Diophantine Equation Three Variables with Nonnegative Solutions.cpp:26
↓ 3 callers
Method
get_min
Miscellaneous/MEX of all Subarrays.cpp:30
↓ 3 callers
Function
go
kth node from u to v, 0th node is u
Graph Theory/LCA.cpp:35
↓ 3 callers
Function
init
Number Theory/K Divisors.cpp:30
↓ 3 callers
Method
insert
Data Structures/Static to Dynamic Trick.cpp:11
↓ 3 callers
Method
inv
Dynamic Programming Optimizations/x2 +1 trick.cpp:19
↓ 3 callers
Method
inv
Math/Characteristic Polynomial Faster.cpp:19
↓ 3 callers
Method
inv
Math/Subset Sum Problem.cpp:122
↓ 3 callers
Method
inv
Math/Lagrange Interpolation Brute.cpp:26
↓ 3 callers
Method
inv
Math/Vandermonde Matrix.cpp:25
↓ 3 callers
Method
inv
Math/BerleKamp Massey.cpp:25
↓ 3 callers
Method
inv
Math/Determinant of Sparse Matrix.cpp:26
↓ 3 callers
Method
inv
Number Theory/Bell Number.cpp:142
↓ 3 callers
Method
inv
Number Theory/Stirling Number of the Second Kind for Fixed n.cpp:60
↓ 3 callers
Method
inv
Number Theory/Generalized Floor Sum of Arithmetic Progressions.cpp:31
↓ 3 callers
Method
inv
Number Theory/Stirling Number of the Second Kind for Fixed k.cpp:260
↓ 3 callers
Method
inv
Number Theory/Sum of Arithmetic Progression Powers Divided.cpp:30
↓ 3 callers
Method
inv
Graph Theory/Number of Arborescence.cpp:19
↓ 3 callers
Method
is_bipartite
Data Structures/DSU with Rollbacks.cpp:21
↓ 3 callers
Method
is_bipartite
Data Structures/Queue Undo Trick.cpp:21
↓ 3 callers
Function
is_equal
Miscellaneous/Negative Base (Binary).cpp:47
↓ 3 callers
Function
isanc
Graph Theory/Path Union.cpp:29
↓ 3 callers
Function
make_edge
Geometry/Voronoi Diagram.cpp:41
↓ 3 callers
Function
make_edge
Geometry/Delaunay Triangulation.cpp:42
↓ 3 callers
Function
mark
Strings/Suffix Automaton Distinct Substring Queries in Range.cpp:102
↓ 3 callers
Method
max_flow
Graph Theory/L R Flow with Dinic.cpp:62
↓ 3 callers
Function
merge
merge adjacent substr a and b to a (ty[a] should be edited manually)
Data Structures/Segment Tree Merging.cpp:88
↓ 3 callers
Method
mod_xk
Number Theory/Stirling Number of the Second Kind for Fixed k.cpp:206
↓ 3 callers
Function
mul
multiply by x^e - 1
Math/Polynomial Factorization.cpp:33
↓ 3 callers
Function
mul_mod
Number Theory/Miller Rabin.cpp:9
↓ 3 callers
Method
mul_xk
modulo by x^k
Math/Polynomial.cpp:207
↓ 3 callers
Function
multiplicity
Number Theory/nCr Modulo Any Mod.cpp:51
↓ 3 callers
Function
multiply
eq = 0: 4 FFTs in total eq = 1: 3 FFTs in total
Math/Linear Recurrence Fastest.cpp:53
↓ 3 callers
Function
multiply
Math/Matrix Exponentiation With Polynomial Coefficients.cpp:37
↓ 3 callers
Function
multiply
Strings/String Matching With FFT.cpp:41
↓ 3 callers
Function
multiply_mint
Math/Lagrange Interpolation with Polynomial Extraction.cpp:155
↓ 3 callers
Method
norm2
Dynamic Programming Optimizations/DP on Convex Hulls.cpp:21
↓ 3 callers
Function
ntt
Math/q Binomial.cpp:21
↓ 3 callers
Function
ntt
Math/NTT Online.cpp:21
↓ 3 callers
Function
ntt
Math/NTT.cpp:21
↓ 3 callers
Function
ntt
Math/Matrix Exponentiation With Polynomial Coefficients.cpp:21
↓ 3 callers
Function
ntt
Number Theory/Sum of nCi over a Fixed Congruence Class.cpp:22
↓ 3 callers
Function
ntt
Number Theory/Stirling Number of the Second Kind for Fixed n.cpp:21
↓ 3 callers
Function
ntt
Number Theory/Stirling Number of the First Kind for Fixed k.cpp:21
↓ 3 callers
Function
ntt_dit4
Number Theory/Sum of nCi for a Fixed Large n.cpp:126
↓ 3 callers
Function
orient_by_normal
returns orientation of p to q to r on the plane perpendicular to n assuming p, q, r are on the plane
Geometry/Geometry 3D.cpp:88
↓ 3 callers
Function
path_union_light
Graph Theory/Path Intersection.cpp:48
↓ 3 callers
Method
pop
Graph Theory/Directed MST.cpp:12
↓ 3 callers
Method
pop
Graph Theory/Eppsteins Algorithm.cpp:33
↓ 3 callers
Function
power
Math/Determinant of Permutant Matrix.cpp:6
↓ 3 callers
Function
power
Math/Determinant of Cyclic Matrix.cpp:6
↓ 3 callers
Function
power
Number Theory/Pisano Period.cpp:6
↓ 3 callers
Function
process_op
Miscellaneous/Expression Parsing.cpp:26
↓ 3 callers
Function
q_binom
number of r dimensional subspaces of n dimensional vector space [n]! / ([r]! * [n - r]!)
Math/q Binomial.cpp:105
← previous
next →
301–400 of 3,514, ranked by callers