maverick06's blog

By maverick06, history, 6 weeks ago, In English

Here is the link to the problem: https://www.hackerearth.com/practice/algorithms/graphs/depth-first-search/practice-problems/algorithm/parwal-problem/ What should be approach and how can I solve these problem?

 
 
 
 
  • Vote: I like it
  • +3
  • Vote: I do not like it

»
6 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Having idea of rerooting will help you in solving this problem.

Here is a blog, in it's comments section you can find useful resources.LINK