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
Method
can_exchange
can we insert elements[inserted_id] and remove elements[removed_id] without breaking independence?
Miscellaneous/Matroid Intersection Color Linear Matroid.cpp:102
Method
can_insert
can we insert elements[id] without breaking independence?
Miscellaneous/Matroid Intersection Color Graphic Matroid.cpp:98
Method
can_insert
can we insert elements[id] without breaking independence?
Miscellaneous/Matroid Intersection Color Linear Matroid.cpp:95
Function
centroid
centroid of a (possibly non-convex) polygon, assuming that the coordinates are listed in a clockwise or counterclockwise fashion. Note that the centr
Geometry/Geometry 2D.cpp:582
Method
centroid
Geometry/Geometry 3D.cpp:532
Method
chirpz
O(nlogn)
Math/Polynomial.cpp:376
Method
chirpz
O(nlogn)
Math/Faulhaber Formula Fastest.cpp:327
Method
circle
Geometry/Geometry 2D.cpp:272
Function
circle_center
returns center of circle passing through three non-colinear and co-planer points a, b and c
Geometry/Geometry 3D.cpp:251
Function
circle_circle_area
returns area of intersection between two circles
Geometry/Geometry 2D.cpp:411
Function
circle_circle_relation
5 - outside and do not intersect 4 - intersect outside in one point 3 - intersect in 2 points 2 - intersect inside in one point 1 - inside and do not
Geometry/Geometry 2D.cpp:332
Function
circle_line_relation
0 if outside, 1 if on circumference, 2 if inside circle
Geometry/Geometry 2D.cpp:309
Function
circle_point_relation
0 if outside, 1 if on circumference, 2 if inside circle
Geometry/Geometry 2D.cpp:302
Method
circumference
Geometry/Geometry 2D.cpp:299
Function
circumscribed_sphere
returns the sphere passing through four points
Geometry/Geometry 3D.cpp:699
Function
clear
Graph Theory/Edge Coloring Bipartite Graph.cpp:12
Method
clear
Math/Basis Vector.cpp:10
Method
clear
Strings/Aho Corasick Dynamic.cpp:9
Method
clear
Data Structures/Static to Dynamic Trick.cpp:36
Function
cmp
Graph Theory/Dynamic MST Offline.cpp:43
Method
cmp_by_projection
compare two points by their orthogonal projection on this line a projection point comes before another if it comes first according to vector v
Geometry/Geometry 2D.cpp:119
Method
cmp_points
Data Structures/KD Tree.cpp:25
Method
cmp_proj
compare points by their projection on the line so you can sort points on the line using this
Geometry/Geometry 3D.cpp:180
Method
cmplx
Math/FWHT in Ternary Base.cpp:40
Method
cnt
Strings/Suffix Automaton.cpp:82
Method
combi
Math/Faulhaber Formula Fastest.cpp:366
Method
combi
Math/Lagrange Interpolation with Polynomial Extraction.cpp:139
Method
combi
Number Theory/Combinatorics Basics.cpp:35
Method
combi
Number Theory/Lucas Theorem.cpp:37
Method
combine
Strings/Suffix Automaton Distinct Substring Queries in Range.cpp:23
Method
combine
Data Structures/Segment Tree NonRecursive.cpp:19
Method
combine
Data Structures/Permutation Tree.cpp:20
Method
combine
Data Structures/HLD.cpp:23
Method
combine
combine node l and r to form t by updating corresponding queries
Data Structures/Implicit Treap.cpp:123
Method
combine
Data Structures/Segment Tree Lazy.cpp:23
Method
component_size
Data Structures/Link Cut Tree.cpp:158
Method
component_sum
Data Structures/Link Cut Tree.cpp:171
Method
composition
p(g(x)) O(nlogn * sqrt(nlogn))
Math/Polynomial.cpp:429
Method
composition_brute
p(g(x)) O(n^2 logn)
Math/Polynomial.cpp:414
Method
cone
radius and height
Geometry/Geometry 3D.cpp:815
Method
connected
Data Structures/Dynamic Connectivity Problem.cpp:45
Method
connected
Data Structures/MOs with DSU.cpp:63
Method
connected
Data Structures/Link Cut Tree.cpp:140
Method
convert
Math/FWHT in Ternary Base.cpp:100
Method
convert_base
Miscellaneous/BigInt.cpp:303
Function
convex_hull
Geometry/Geometry 2D.cpp:633
Function
convex_line_intersection
given a convex polygon p, and a line ab and the top vertex of the polygon returns the intersection of the line with the polygon it returns the indices
Geometry/Geometry 2D.cpp:872
Method
convolution
Miscellaneous/BigInt.cpp:399
Method
coords
From three points P, Q, R on the plane
Geometry/Geometry 3D.cpp:137
Method
costruct_lcp
Strings/Suffix Array Isomorphic.cpp:56
Method
costruct_lcp
Strings/Suffix Array Isomorphic.cpp:149
Method
costruct_lcp
Strings/Suffix Array.cpp:105
Method
count
Miscellaneous/Matroid Intersection Color Graphic Matroid.cpp:34
Method
count
count of numbers in [l, r] equal to k
Strings/Number of Palindromes in Range.cpp:97
Method
count
Graph Theory/Boruvka's Algorithm.cpp:51
Method
count
Graph Theory/Gomory Hu Tree.cpp:117
Function
count_basis
number of length n sequences with elements in [0, 2^k) such that its basis has size r same as the above function
Math/q Binomial.cpp:130
Function
count_basis_general
ways to select k vectors of length n having basis size r
Math/q Binomial.cpp:123
Function
count_except_xor_1_for_all_n
number of length i sequences with elements in [0, 2^k) such that no subset has xor 1 for all 1 <= i <= n O(n logn)
Math/q Binomial.cpp:161
Method
count_lt
number of subsets having xor < x
Math/Basis Vector.cpp:70
Method
cplx
Miscellaneous/BigInt.cpp:13
Method
create_hull
building a 3D convex hull
Geometry/Geometry 3D.cpp:436
Function
cross
Geometry/Delaunay Triangulation.cpp:127
Method
cross
Geometry/Geometry 3D.cpp:389
Method
cross
Geometry/Delaunay Triangulation.cpp:121
Function
cross2
Geometry/Half Plane Intersection Dynamic.cpp:50
Method
crt
Math/Reeds Sloane Algorithm.cpp:55
Method
cut
Data Structures/Top Tree.cpp:436
Method
cylinder
radius and height
Geometry/Geometry 3D.cpp:801
Method
dPT
Geometry/Delaunay Triangulation.cpp:114
Function
dateToInt
Miscellaneous/Dates.cpp:2
Method
dblcmp
positive: p3 in the same direction
Geometry/Geometry 3D.cpp:399
Method
deal
Geometry/Geometry 3D.cpp:405
Method
debug
Number Theory/Sum of nCi for a Fixed Large n.cpp:75
Method
decomp
Graph Theory/Long Path Decomposition.cpp:32
Function
deg_to_rad
Geometry/Voronoi Diagram.cpp:153
Function
deg_to_rad
Geometry/Geometry 2D.cpp:51
Function
deg_to_rad
Geometry/Geometry 3D.cpp:48
Function
deg_to_rad
Geometry/Half Plane Intersection.cpp:45
Function
deg_to_rad
Geometry/Half Plane Intersection Dynamic.cpp:45
Function
deg_to_rad
Geometry/All Pair Segment Intersection.cpp:105
Method
del
Data Structures/Trie.cpp:62
Method
depth
depth in the rep. tree
Data Structures/Link Cut Tree.cpp:144
Function
dfs
Data Structures/DSU on Tree.cpp:8
Method
dfs
recursively search all faces that should be removed from the convex hull
Geometry/Geometry 3D.cpp:421
Method
dfs
Miscellaneous/Maximum of Sum of All Pair Distances of K nodes in a Tree.cpp:103
Method
dfs
Data Structures/Treap.cpp:71
Method
dfs
Data Structures/Reachability Tree.cpp:14
Method
dfs
Graph Theory/Articulation Bridges.cpp:11
Method
dfs
Graph Theory/Randomized Matching Unweighted.cpp:25
Method
dfs
Graph Theory/Dinics Algorithm.cpp:45
Method
dfs
Graph Theory/Long Path Decomposition.cpp:13
Method
dfs
Graph Theory/Unique Min Cut.cpp:45
Method
dfs
Graph Theory/L R Flow with Dinic.cpp:45
Method
dfs
Graph Theory/LCA in O(1).cpp:33
Method
dfs
Graph Theory/HopCroft Karp Algorithm.cpp:41
Method
dfs
Graph Theory/Maximum Closure Problem.cpp:45
Method
dfs
Graph Theory/Gomory Hu Tree.cpp:45
Method
dfs
Graph Theory/Maximum Density Subgraph.cpp:45
Method
dfs1
Graph Theory/2 SAT.cpp:58
← previous
next →
1,701–1,800 of 3,514, ranked by callers