โ† BNY Mellon questions
CodingReported in a candidate post, Jul 2025

Check if sum of node values across paths equals X

Filed under BNY Mellon

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

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 BNY Mellon questions

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