...

/

Challenge 5: Finding Nodes at "k" Distance From the Root

Challenge 5: Finding Nodes at "k" Distance From the Root

If you are given the root to a binary search tree and a node value k, can you write a code to find the nodes at k distance from the root?

Access this course and 1400+ top-rated courses and projects.
Lifetime Discount - 50% Off
$14
$26.50/month