Given a binary tree having N nodes and weight of N-1 edges. The distance between two nodes is the sum of the weight of edges… Read More
Tag Archives: LCA.array-range-queries
Given a tree, and the weights of all the node. Each query contains two integers u and v, the task is to find the minimum… Read More