How to solve this problem ?!!

Правка en3, от Zahid_Hasan_Sahin, 2021-05-16 18:27:40

I'm trying to solve Farthest Nodes in a Tree (II) Problem in java . it's from lightOj. But I'm getting MLE(it takes 151552 KB memory). How to solve it using java.??

Code
Теги lightoj 1257, mle, java, help

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en5 Английский Zahid_Hasan_Sahin 2021-05-28 06:04:50 62
en4 Английский Zahid_Hasan_Sahin 2021-05-16 18:29:19 4 Tiny change: ' summary="Code">\n\n~~~~' -> ' summary="code:">\n\n~~~~'
en3 Английский Zahid_Hasan_Sahin 2021-05-16 18:27:40 74 Tiny change: 'mar="Code:">\n` impo' -> 'mar="Code: ">\n` impo'
en2 Английский Zahid_Hasan_Sahin 2021-05-16 09:36:45 6
en1 Английский Zahid_Hasan_Sahin 2021-05-16 09:35:54 2631 Initial revision (published)