dp on tress

Revision en1, by Master_coder, 2019-04-07 15:21:02

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

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Master_coder 2019-04-07 15:21:02 224 Initial revision (published)