Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Priyansh19077/CP-Templates
/ functions
Functions
278 in github.com/Priyansh19077/CP-Templates
⨍
Functions
278
◇
Types & classes
32
↓ 82 callers
Function
brute_sum
tests/range_utils.h:10
↓ 64 callers
Method
make_query
Tree Algorithms/HLD.cpp:168
↓ 27 callers
Method
make_update
Tree Algorithms/HLD.cpp:164
↓ 25 callers
Function
range_assign
Apply a range assign to a reference array alongside a LazySGT update so both stay in sync and brute_sum can verify queries.
tests/range_utils.h:41
↓ 16 callers
Function
brute_xor
tests/range_utils.h:16
↓ 16 callers
Method
queryNormal
Tree Algorithms/LCA_O_1.cpp:34
↓ 14 callers
Function
MillerRabin
Number Theory/MillerRabinDeterministic.cpp:25
↓ 10 callers
Function
swap
Graph Algorithms/Kruskals.cpp:67
↓ 8 callers
Function
brute_distinct
tests/range_utils.h:34
↓ 7 callers
Function
get
Graph Algorithms/Kruskals.cpp:79
↓ 6 callers
Method
merge
Tree Algorithms/HLD.cpp:181
↓ 6 callers
Function
nthFibonacciNumber
Common Techniques/Fibonacci in LogN.cpp:29
↓ 6 callers
Method
queryIdempotent
Tree Algorithms/LCA_O_1.cpp:44
↓ 5 callers
Function
brute_min
tests/range_utils.h:22
↓ 5 callers
Function
dfs
--------------------------------------------------------------------------------------------------------------------------*/
Graph Algorithms/Cycle_in_DAG.cpp:38
↓ 3 callers
Function
distinctQueries
Common Techniques/Distinct in Range Queries.cpp:17
↓ 3 callers
Function
getD
Tree Algorithms/Centroid_Tree.cpp:4
↓ 3 callers
Method
merge
Tree Algorithms/LCA_O_1.cpp:62
↓ 3 callers
Method
merge
Range Queries/Sparse_Table.cpp:56
↓ 3 callers
Method
merge
Range Queries/Segment_tree.cpp:67
↓ 3 callers
Method
merge
Range Queries/Lazy_SGT.cpp:92
↓ 3 callers
Function
mminvprime
for non prime b
String Algorithms/Suffix_array.cpp:34
↓ 3 callers
Function
mod_mul
TemplateStuff/Template.cpp:70
↓ 2 callers
Function
_bit_query
Common Techniques/Distinct in Range Queries.cpp:11
↓ 2 callers
Function
_bit_update
Common Techniques/Distinct in Range Queries.cpp:8
↓ 2 callers
Function
_fib_mul
Common Techniques/Fibonacci in LogN.cpp:8
↓ 2 callers
Method
add
Range Queries/Mo_algo.cpp:57
↓ 2 callers
Method
kthParent
Tree Algorithms/HLD.cpp:58
↓ 2 callers
Function
mminvprime
for non prime b
Graph Algorithms/Cycle_in_DAG.cpp:32
↓ 2 callers
Function
mminvprime
for non prime b
Graph Algorithms/Topological_sorting.cpp:32
↓ 2 callers
Method
rem
Range Queries/Mo_algo.cpp:60
↓ 1 callers
Function
_fib_matpow
Common Techniques/Fibonacci in LogN.cpp:20
↓ 1 callers
Function
_mr_composite
Number Theory/MillerRabinDeterministic.cpp:15
↓ 1 callers
Function
_mr_pow
Number Theory/MillerRabinDeterministic.cpp:6
↓ 1 callers
Method
apply
Tree Algorithms/HLD.cpp:191
↓ 1 callers
Method
apply
Range Queries/Segment_tree.cpp:76
↓ 1 callers
Method
apply
Range Queries/Lazy_SGT.cpp:104
↓ 1 callers
Function
brute_distinct
tests/test_distinct_queries.cpp:6
↓ 1 callers
Function
check_cycle
Graph Algorithms/Cycle_in_DAG.cpp:57
↓ 1 callers
Method
combine
Range Queries/Lazy_SGT.cpp:107
↓ 1 callers
Function
computeSubtrees
Tree Algorithms/Centroid_Tree.cpp:7
↓ 1 callers
Function
counting_sort
--------------------------------------------------------------------------------------------------------------------------*/
String Algorithms/Suffix_array.cpp:39
↓ 1 callers
Function
decompose
Tree Algorithms/Centroid_Tree.cpp:26
↓ 1 callers
Function
dfs
Graph Algorithms/EulerianCircuit.cpp:1
↓ 1 callers
Function
dfs
--------------------------------------------------------------------------------------------------------------------------*/
Graph Algorithms/Topological_sorting.cpp:38
↓ 1 callers
Function
expo
TemplateStuff/Template.cpp:61
↓ 1 callers
Function
expo
String Algorithms/Suffix_array.cpp:29
↓ 1 callers
Function
expo
Graph Algorithms/Prims.cpp:31
↓ 1 callers
Function
expo
Graph Algorithms/Cycle_in_DAG.cpp:29
↓ 1 callers
Function
expo
Graph Algorithms/4.KosaRaju_Algo_SCC.cpp:62
↓ 1 callers
Function
expo
Graph Algorithms/Topological_sorting.cpp:29
↓ 1 callers
Function
expo
Graph Algorithms/PrimsUpdated.cpp:62
↓ 1 callers
Function
expo
Graph Algorithms/Kruskals.cpp:62
↓ 1 callers
Function
extendgcd
TemplateStuff/Template.cpp:62
↓ 1 callers
Function
extendgcd
String Algorithms/Suffix_array.cpp:32
↓ 1 callers
Function
extendgcd
Graph Algorithms/Prims.cpp:33
↓ 1 callers
Function
extendgcd
Graph Algorithms/Cycle_in_DAG.cpp:30
↓ 1 callers
Function
extendgcd
Graph Algorithms/4.KosaRaju_Algo_SCC.cpp:63
↓ 1 callers
Function
extendgcd
Graph Algorithms/Topological_sorting.cpp:30
↓ 1 callers
Function
extendgcd
Graph Algorithms/PrimsUpdated.cpp:63
↓ 1 callers
Function
extendgcd
Graph Algorithms/Kruskals.cpp:63
↓ 1 callers
Method
findAnswer
Tree Algorithms/HLD.cpp:282
↓ 1 callers
Function
findCentroid
Tree Algorithms/Centroid_Tree.cpp:17
↓ 1 callers
Function
getComponent
Graph Algorithms/4.KosaRaju_Algo_SCC.cpp:88
↓ 1 callers
Method
getLCA
Tree Algorithms/HLD.cpp:96
↓ 1 callers
Function
getSCC
Graph Algorithms/4.KosaRaju_Algo_SCC.cpp:97
↓ 1 callers
Method
kthParent
Tree Algorithms/LCA_tree.cpp:53
↓ 1 callers
Method
makeUpdateatIndex
Tree Algorithms/HLD.cpp:293
↓ 1 callers
Function
merge
Graph Algorithms/Kruskals.cpp:82
↓ 1 callers
Function
mminvprime
for non prime b
TemplateStuff/Template.cpp:64
↓ 1 callers
Function
mminvprime
for non prime b
Graph Algorithms/4.KosaRaju_Algo_SCC.cpp:65
↓ 1 callers
Function
mminvprime
for non prime b
Graph Algorithms/PrimsUpdated.cpp:65
↓ 1 callers
Function
mminvprime
for non prime b
Graph Algorithms/Kruskals.cpp:65
↓ 1 callers
Function
mod_mul
Graph Algorithms/4.KosaRaju_Algo_SCC.cpp:72
↓ 1 callers
Function
mod_mul
Graph Algorithms/PrimsUpdated.cpp:72
↓ 1 callers
Function
mod_mul
Graph Algorithms/Kruskals.cpp:72
↓ 1 callers
Function
mod_sub
TemplateStuff/Template.cpp:71
↓ 1 callers
Function
prims
Graph Algorithms/Prims.cpp:57
↓ 1 callers
Function
run_tests
tests/test_sparse_table.cpp:15
↓ 1 callers
Function
run_tests
tests/test_miller_rabin.cpp:6
↓ 1 callers
Function
run_tests
tests/test_fibonacci.cpp:6
↓ 1 callers
Function
run_tests
tests/test_distinct_queries.cpp:10
↓ 1 callers
Function
run_tests
tests/test_mo_algo.cpp:37
↓ 1 callers
Function
run_tests
tests/test_lazy_sgt.cpp:7
↓ 1 callers
Function
run_tests
tests/test_segment_tree.cpp:7
↓ 1 callers
Method
save
Range Queries/Mo_algo.cpp:63
↓ 1 callers
Function
solve
--------------------------------------------------------------------------------------------------------------------------*/
TemplateStuff/Template.cpp:76
↓ 1 callers
Function
solve
Graph Algorithms/4.KosaRaju_Algo_SCC.cpp:116
↓ 1 callers
Function
solve
Graph Algorithms/PrimsUpdated.cpp:80
↓ 1 callers
Function
solve
Graph Algorithms/Kruskals.cpp:95
↓ 1 callers
Function
topoSort
Graph Algorithms/4.KosaRaju_Algo_SCC.cpp:79
↓ 1 callers
Function
topo_sort
Graph Algorithms/Topological_sorting.cpp:49
Function
BellmanFord
Graph Algorithms/BellmanFord.cpp:1
Method
BinaryLifting
Tree Algorithms/Binary_Lifting.cpp:6
Method
BinaryLifting
Tree Algorithms/LCA_tree.cpp:8
Method
BinaryLifting
Tree Algorithms/HLD.cpp:11
Function
Dijkstra
Graph Algorithms/Dijkstra.cpp:4
Method
EdmondsKarp
Graph Algorithms/EdmondsKarp.cpp:72
Function
EulerCircuits
Graph Algorithms/EulerianCircuit.cpp:10
Method
Flow
Graph Algorithms/EdmondsKarp.cpp:16
next →
1–100 of 278, ranked by callers