algorithm

BOJ 1167 - 트리의 지름

트리에서 제일 먼 두 점은 어디일까?

#algorithm#boj#dfs#graph-theory#graph-traversal#tree