Skip to content

My USA Computing Olympiad training in 2020 for Heavy-Light Decomposition in segment trees

Notifications You must be signed in to change notification settings

jaehayi25/HLD-SegmentTree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

HLD-SegmentTree

USACO 2019 February Contest, Gold

Heavy-Light Decomposition (HLD) allows tree paths from the child to the parent to be expressed as a contiguous subarray. We can then use a segment tree to update and get values in O(log n).

Problem:

Online material that I used:

About

My USA Computing Olympiad training in 2020 for Heavy-Light Decomposition in segment trees

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages