Hackerrank Problem.

Revision en1, by shubhamgoyal__, 2017-08-08 17:22:07

I was trying to solve this problem which recently appeared in a hackerrank contest. The editorial mentions a solution based on geometric interpretation of the question.But since a lot of tree path questions can be done using centroid decomposition,does anyone know how to solve it using centroid decomposition?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English shubhamgoyal__ 2017-08-08 17:22:07 565 Initial revision (published)