← Questions

Longest increasing downward path in a binary tree

0
MetaCodingLast asked Nov 2025

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.

Write and test your solution herePython in your browser, the question's tests level by level, saved for you.Sign in to start coding