Tree: Depth-First Search - Path Sum
You need to determine if a binary tree has a root-to-leaf path where the sum of node values equals a target sum. Which algorithmic pattern best fits this problem?
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions