Please help me in HACKEREARTH Question: GCD ON TREE

Revision en1, by n1e2m3, 2018-10-14 18:45:49

how to solve this problem?

problem link: https://www.hackerearth.com/problem/algorithm/gcd-on-tree-6c5cdfba/description/

how to apply centroid decomposition in this problem? or any other approach to solve this problem?

Tags tree-dp, #hackerearth, gcd, centroid decomposition, hard

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English n1e2m3 2018-10-14 18:45:49 275 Initial revision (published)