Heavy Light Trick + Tree Rerooting Technique + Tree to Array (Euler Tour on Tree)

Revision en4, by Algorithm_, 2021-03-08 21:47:24
Tags #sqrt decomposition

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English Algorithm_ 2021-03-08 21:47:24 228
en3 English Algorithm_ 2021-02-04 22:18:22 55 Tiny change: 'Olymp-1180' -> 'Olymp-1180\n\n3. https://codeforces.net/problemset/problem/1156/D'
en2 English Algorithm_ 2021-01-25 23:21:20 351
en1 English Algorithm_ 2021-01-23 15:28:13 357 Initial revision (published)