InterviewDB Question

Tree Path - Find All Root-to-Leaf Paths Summing to a Target

Question Details

Problem Given the root of a binary tree and a target integer k, return all root-to-leaf paths where the sum of node values equals k. Each path is a list of node values from root to leaf. Example: Follow-ups Modify to return the maximum sum path (not…

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Coding Phone