How to solve this problem ?!!

Revision en3, by 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
Tags lightoj 1257, mle, java, help

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en5 English Zahid_Hasan_Sahin 2021-05-28 06:04:50 62
en4 English Zahid_Hasan_Sahin 2021-05-16 18:29:19 4 Tiny change: ' summary="Code">\n\n~~~~' -> ' summary="code:">\n\n~~~~'
en3 English Zahid_Hasan_Sahin 2021-05-16 18:27:40 74 Tiny change: 'mar="Code:">\n` impo' -> 'mar="Code: ">\n` impo'
en2 English Zahid_Hasan_Sahin 2021-05-16 09:36:45 6
en1 English Zahid_Hasan_Sahin 2021-05-16 09:35:54 2631 Initial revision (published)