Heavy-Light · Path Queries on Trees
unseel.com · O(log² N) · chain by chain
Chains 0
Path sum 0
State
Node
Heavy edge
Path query
Chain
Unseel.com · Heavy-Light Decomposition