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
12 votes
Tags:
Data StructuresGraph TheoryOpenDivide-and-conquer algorithmHardAlgorithms
Points:50
1 votes
Tags:
AlgorithmsOpenApprovedHardAlgorithms
Points:50
22 votes
Tags:
Heavy Light DecompositionAdvanced AlgorithmsAlgorithms
Editorial

Login to unlock the editorial