why I am getting wrong output ?
Print all nodes at distance k
For sample input :
4
60 65 50 70
50 65 60 70
2
60 1
65 2
Output should be :
65 70
70
While I am getting
65 50
50
Hey @vaishnavtannu it’s hard to debug 150 lines of code. Can you please add some comments so that i can have an idea what you want to do. Don’t forget to share your code after adding some comments
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.