Tree: Depth-First Search - Path Sum II (All Root-to-Leaf Paths)
Given the following iterative DFS code for Path Sum II, what is the output for the tree with root=1, left=2, right=3 and targetSum=3?
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions