Please check my code and send me an example of the failing test case.
Print all nodes at a distance K from target - Trees
fixed the logic with comments
i have used a vector to keep track of the 0 elements case
Please check my code and send me an example of the failing test case.
fixed the logic with comments
i have used a vector to keep track of the 0 elements case