siva2697's blog

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?

Full text and comments »

By siva2697, history, 6 years ago, In English

How to solve problem TWOTREES LINK

What Concepts or Prerequisites are required

Full text and comments »

  • Vote: I like it
  • -1
  • Vote: I do not like it