One Trick Access
Practice
3 (1 votes)
Loops
Heavy light decomposition
Hard
Tree
Data structures
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
3 votes
Tags:
Lowest Common AncestorTreesData Structures
Points:50
1 votes
Tags:
Segment TreesEulerian pathData StructuresTreesLowest Common Ancestor
Points:50
1 votes
Tags:
AlgorithmsTreesDepth First SearchData StructuresLowest Common AncestorGraphs
Editorial

Login to unlock the editorial