Heavy Light Decomposition algorithm, tree 2025년 09월 09일 트리에서 특정 노드의 범위를 세그먼트 트리로 사용할 수 있도록 하는 알고리즘 Example 이전Codeforces Round 1049 (Div. 2)다음Sqrt Decomposition