---
id: tree-dia
title: "Tree Diameter"
author: Benjamin Qi
prerequisites:
-
- Silver - Depth First Search
description: Finding a pair of vertices of a tree that are farthest apart.
### Tutorial
- CPH 14.2
### Problems
- [CSES Tree Diameter](https://cses.fi/problemset/task/1131)
- [USACO Plat Newbarns](http://www.usaco.org/index.php?page=viewproblem2&cpid=817)
- Copy of [CF Brain Network "Hard"](https://codeforces.com/contest/690/problem/C3)
- [Tree Construction](https://csacademy.com/contest/archive/task/tree-construct)