Skip to content
Avio Lines
← Trees lineD14Stop 27 of 64

Longest ZigZag Path in a Binary Tree (LeetCode 1372)

MediumLeetCode 1372 · Traversals (DFS / BFS) · Amazon, Microsoft · 25:12Longest ZigZag Path in a Binary Tree - · Leetcode-1372 · MICROSOFT · Explanation + Live Code
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 1372 Longest ZigZag Path in a Binary Tree by codestorywithMIK: Trees, Medium. Topics: Dynamic Programming, Tree, Depth-First Search, Binary Tree. Watch the explanation, then check the code and solve it on LeetCode.

Difficulty
medium
Topics
Dynamic Programming, Tree, Depth-First Search, Binary Tree, DP on Trees
Patterns
Traversals (DFS / BFS)
Chapter
Trees
Duration
25:12