Root-to-Leaf Path Sum
A binary tree is given in level order, with # for a missing child (children of missing nodes are not listed). Print YES if some root-to-leaf path sums to target.
Constraints
1 <= nodes <= 5000
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.