Print all nodes at distance k

my text case 1& 2 are failing please point out mistakes

hey @abdulajaz20 please share you code link or you can check out https://ide.codingblocks.com/s/630585 my code if you find any difficulty in understanding the code please ask.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

never mind I was taking “no node are available at distance k” case
I had to print 0 but I didn’t.

Hey @abdulajaz20 you haven’t taken the else part in your code please check it out if no node in available.

yes the same thing.
Enjoy learning at coding blocks.