Print K-sum paths in a binary tree
Filed under ServiceNow
The question
Write code to find and print all paths in a binary tree where the sum of node values equals a given value K.
No write-up yet. Related questions below have one.
Related ServiceNow questions
Collected from public candidate posts and coding forums. Updated Nov 2026.