Static Tree

You are given a tree containing N vertices. The vertices are numbered from 1 to N. A tree with N ver…

Click here to read the complete problem statement.


If you need help solving this problem, mention your approach and ask specific questions. Please avoid sharing your code and asking the Community to figure out “what’s wrong”.

Sir,
I love python also this toph.co . but it is very much annowing to get stuck again and again. I’m very new in data structure and algorithm. I want to solve all the question available in this site. so may i get python solution for this question.

you may find me asking python solutions for other questions as well so please don’t get me wrong.
Further please suggest me how to I improve myself in data structure and algorithm.