Master_coder's blog

By Master_coder, history, 5 years ago, In English

i am trying to solve the problem https://www.hackerrank.com/challenges/tree-pruning/problem . the main point here is how to choice which subtree we have to delete and how dfs order to visit the node can help us ?

Tags dp, tree
  • Vote: I like it
  • -20
  • Vote: I do not like it