Computer Science, asked by manojkrsingh6309, 19 days ago

They are given in the data file. In the numbers n, p and q where n is the number of nodes of a tree and p and q are nodes in the tree. Then read the daddy vector through which the tree is represented. Display the elementary chain from vertex p to vertex q.
Example:
date.in
7 2 5
4 1 7 0 7 7 1
date.out
2 1 7 5

Answers

Answered by eniyavarshini2020
0

Answer:

is this this coputer science

Explanation:

Similar questions