1372. Longest ZigZag Path in a Binary Tree
MediumDynamic Programming · Tree · Depth-First Search · Binary Tree · DP on Trees · 25:12
LeetCode problem 1372, Longest ZigZag Path in a Binary Tree, was LeetCode's Daily Challenge on Wednesday, April 19, 2023. It's rated medium. codestorywithMIK explains the approach step by step in the video above.