Rebuilding Roads
Hello Everyone ,I am trying to solve this problem for some time now.I could not find an explanation in English for it anywhere . The question is related to DP (on trees) .The problem can be seen here.Thanks in advance :)