Explain short solution to find farthest point from every node please !

Правка en1, от youssefbou62, 2019-09-06 15:49:30

I was trying to solve this problem and this is my AC code. I then found This short solution written by some user. Can anyone explain what it does ?

Теги tree, dpontree, dp, graph

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский youssefbou62 2019-09-06 16:30:00 21 Tiny change: 't it does ? ' -> 't it does and why is it correct? '
en1 Английский youssefbou62 2019-09-06 15:49:30 347 Initial revision (published)