Skip to content
Avio Lines
← Graphs lineD17Stop 46 of 145

Tree Diameter (LeetCode 1245)

MediumLeetCode 1245 · BFS · Google, Amazon +5 · 36:19· LeetCode PremiumDiameter Of Undirected Graph · Tree Diameter · Leetcode 1245 · Graph Concepts & Qns - 44
MIK's code LeetCode ↗ YouTube ↗

My notes

Sign in to keep private notes on every station, with video timestamps.

Try it before watching

Pause here and write your approach in two lines. Compare it with MIK's when the video ends.

Sign in to write your approach →

About this video

Video solution for LeetCode 1245 Tree Diameter by codestorywithMIK: Graphs, Medium. Topics: Tree, Depth-First Search, Breadth-First Search, Graph Theory. Watch the explanation, then check the code and solve it on LeetCode.

Difficulty
medium
Topics
Tree, Depth-First Search, Breadth-First Search, Graph Theory, Topological Sort, DP on Trees
Patterns
BFS, DFS, Topological Sort
Chapter
Graphs
Duration
36:19