Longest ZigZag Path in a Binary Tree

mediumSolve on LeetCodeLast edited: August 2, 2025