CodingEasy
Print all k-sum paths in a binary tree
Filed under Myntra
The question
Given a binary tree and an integer k, find and print all paths that sum up to k. Paths do not necessarily need to start at the root or end at a leaf.
No write-up yet. Related questions below have one.
Related Myntra questions
Collected from public candidate posts and coding forums. Updated Nov 2026.