โ† Accolite questions

Root to leaf path sum equal to K

Filed under Accolite

Given a binary tree and an integer K, determine if there exists a root-to-leaf path such that the sum of the node values equals K.

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 Accolite questions

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