Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Priyansh19077/CP-Templates
/ types & classes
Types & classes
32 in github.com/Priyansh19077/CP-Templates
⨍
Functions
278
◇
Types & classes
32
↓ 17 callers
Class
Node
String Algorithms/Trie.cpp:2
↓ 1 callers
Class
BinaryLifting
No need to change anything here
Tree Algorithms/HLD.cpp:3
↓ 1 callers
Class
LCA
No need to change anything here
Tree Algorithms/HLD.cpp:75
↓ 1 callers
Class
MoCmp
Range Queries/Mo_algo.cpp:7
↓ 1 callers
Class
Trie
String Algorithms/Trie.cpp:10
Class
BinaryLifting
Tree Algorithms/Binary_Lifting.cpp:1
Class
BinaryLifting
Tree Algorithms/LCA_tree.cpp:1
Class
Edge
Graph Algorithms/EdmondsKarp.cpp:1
Class
Edge
Graph Algorithms/FordFulkerson_Algo.cpp:1
Class
Flow
Graph Algorithms/EdmondsKarp.cpp:7
Class
Flow
Graph Algorithms/FordFulkerson_Algo.cpp:7
Class
HLD
Tree Algorithms/HLD.cpp:196
Class
Hashing
String Algorithms/String_Hashing.cpp:1
Class
LCA
Tree Algorithms/LCA_tree.cpp:69
Class
LCA_O_1
Tree Algorithms/LCA_O_1.cpp:72
Class
LazySGT
Range Queries/Lazy_SGT.cpp:8
Class
Node1
Tree Algorithms/HLD.cpp:173
Class
Node1
Tree Algorithms/LCA_O_1.cpp:51
Class
Node1
Example: XOR aggregate (non-idempotent, use queryNormal)
Range Queries/Sparse_Table.cpp:48
Class
Node1
Example: sum aggregate, point-set update
Range Queries/Segment_tree.cpp:59
Class
Node1
Example: range-assign update, range-sum query
Range Queries/Lazy_SGT.cpp:84
Class
NodeMin
Min node for idempotent queryIdempotent tests
tests/test_sparse_table.cpp:8
Class
Range1
Example: sum of elements in each query range
Range Queries/Mo_algo.cpp:48
Class
Range2
Range struct for counting distinct elements. Coordinate-compresses the array in its constructor so add/rem can work with a compact freq table instead
tests/test_mo_algo.cpp:10
Class
SegTree
Tree Algorithms/HLD.cpp:117
Class
SegTree
Range Queries/Segment_tree.cpp:8
Class
SparseTable
Tree Algorithms/LCA_O_1.cpp:2
Class
SparseTable
Range Queries/Sparse_Table.cpp:8
Class
UnionFind
Union Find Algorithm Almost O(1) for reasonable size N. O(log*N) to be precise
Graph Algorithms/UnionFind.cpp:2
Class
Update1
Tree Algorithms/HLD.cpp:186
Class
Update1
Range Queries/Segment_tree.cpp:71
Class
Update1
Range Queries/Lazy_SGT.cpp:96