Upgrade
Practice
4.1 (24 votes)
Data structures
Hard
Open
Binary search tree
Heavy light decomposition
Algorithms
Code Editor

Please login to use the editor

You need to be logged in to access the code editor

Loading...

Please wait while we load the editor

Loading...
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:50
Tags:
Dynamic ProgrammingHardHeavy light decompositionAlgorithmsOpenApprovedAlgorithmsDisjoint set
Points:50
22 votes
Tags:
Heavy Light DecompositionAdvanced AlgorithmsAlgorithms
Points:50
12 votes
Tags:
Data StructuresGraph TheoryOpenDivide-and-conquer algorithmHardAlgorithms
Editorial

Login to unlock the editorial