what are the necessary topics we need to know before learning heavy light decomposition
-
BFS/DFS
-
Lowest common ancestor
-
Segment tree like data structures that you would build on chains
1 Like
what are the necessary topics we need to know before learning heavy light decomposition
BFS/DFS
Lowest common ancestor
Segment tree like data structures that you would build on chains