Блог пользователя siva2697

Автор siva2697, история, По-английски

Question: QTREE5

I have read a solution that uses Centroid Decomposition but was unable understand how the querying in Centroid Tree reflects the same in the original Tree?? Edges are changed.Path from u to v might not contain centroids why does that appraoch work?

Can someone help?

»
7 лет назад, # |
  Проголосовать: нравится +6 Проголосовать: не нравится

What's wrong with my question? Besides not getting any help, there are many downvotes. Can i know the reason please? I am losing trust in codeforces. Sorry.