The first line contains the integer , the size of . The second line contains space-separated integers
Answers
Answered by
0
The first line contains an integer N which is the number of nodes in the tree. The next N lines contain N integers representing the values associated with each node i.e ith line contains the value associated with node i-1. The next N-1 lines give the information of edges in the tree.
Similar questions