XYZ Path queries

4.7

16 votes
Algorithms, Bit manipulation, Combinatorics, Depth First Search, Dynamic Programming, Graphs, Lowest Common Ancestor, Trees
The Editorial is locked. In order to qualify for points, you need to solve the problem without unlocking the editorial.
Are you sure you want to unlock the tab?
Unlock it

?