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.