← Microsoft questions

Print all downward paths in binary tree with sum N

Filed under Microsoft

Given a binary tree with non-negative values and an integer N, find and print all downward paths from any node such that the sum of the node values along the path equals N. A downward path is defined…

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

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