Bornat
Visualizer
Explore
Algorithms
Data Structures
Neural Net
Practice
Playground
Compare
Docs
Search…
Ctrl K
Trees & Heaps
Tree Diameter
Tree Diameter
Find a longest tree path using two breadth-first sweeps.
Intermediate
longest path
two BFS
tree metric
Favorite
Loading visualization…