← Questions
Longest increasing downward path in a binary tree
0
I was asked this
No reports yet. Sign in to say where you were asked it.
In a binary tree, find the longest path that goes from a node down to one of its descendants where every child's value is greater than its parent's (not necessarily by exactly one). Return the path itself, not only its length.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Write and test your solution herePython in your browser, the question's tests level by level, saved for you.Sign in to start coding
