Downhill Trails With a Target Sum

Hard · Trees & BSTs · about 35 min

A ski resort maps its runs as a binary tree: each node is a section of slope with a score (it can be negative).

Hard problems are part of TuringPath Pro. See plans.

Learn the pattern first: the Trees & BSTs lesson.

More Trees & BSTs problems