sir code gives me correct output but it give wrong answer in the test case
Print all nodes at a distance k from a given node
Hey, i have marked your mistake in comment.Also,you can see my code.It accepted on leetcode.Please go through that code as well.
sir i cant see your reply