Блог пользователя Master_coder

Автор Master_coder, история, 5 лет назад, По-английски

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 ?

Теги dp, tree
  • Проголосовать: нравится
  • -20
  • Проголосовать: не нравится