01 · Question
Given a binary tree, a node is aligned if its value equals its depth. Return the longest path consisting only of aligned nodes.
02 · Solution
01 · Question
Given a binary tree, a node is aligned if its value equals its depth. Return the longest path consisting only of aligned nodes.
02 · Solution