← Paytm questions
CodingReported in a candidate post, Sep 2024

All nodes at distance K in a binary tree

Filed under Paytm

Given the root of a binary tree, the value of a target node and an integer k, return the values of all nodes that are exactly k edges away from the target. The answer may be in any order. Node values…

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

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