Fundamentals
/
Binary Tree Distance K from Target Node
⏸
00:00
↻
← Prev
Next →
▶
Question
Given the root of a binary tree, a target node, and an integer k, return an array of values of all nodes that are at distance exactly k from the target.
▶
Understand
▶
Approach
▶
My Code
▶
Reference Solution
Compare
6