← Arcesium questions
CodingReported in a candidate post, May 2021

Root to leaf path sum equal to a given number

Filed under Arcesium · Also reported at Atlassian, FactSet

Given the root of a binary tree and an integer targetSum, return true if the tree has a root-to-leaf path such that adding up all the values along the path equals targetSum.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Arcesium questions

Collected from public candidate posts and coding forums. Updated Nov 2026.