DIY: All Nodes Distance K in Binary Tree
We'll cover the following...
Problem statement
We are given a binary tree (with a root node root
), a target
node, and an integer value, K
...
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy