Zahid_Hasan_Sahin's blog

By Zahid_Hasan_Sahin, history, 4 years ago, In English

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:

UPD:Using System.gc() after each testCase I have got AC.

| Write comment?