A Computer Science portal for geeks. It contains well written, well thought and well explained computer science and programming articles, quizzes and practice/competitive programming/company interview Questions.

#competitive programming #dynamic programming #greedy #mathematical #recursion #tree #dfs #gcd-lcm #n-ary-tree

Find GCD of each subtree of a given node in an N-ary Tree for Q queries-GeeksforGeeks
1.65 GEEK