Tree: Depth-First Search - Path Sum II (All Root-to-Leaf Paths)
Given the following partial output of a Path Sum II function: [[5, 4, 11, 2], [5, 8, 4, 5]], which of these trees and target sums could produce this output?
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions