PRINT ALL NODES AT A DISTANCE K

TLE

@mverma_be19
You forgot to input t
Now try to debug logically

https://ide.codingblocks.com/s/384813 Made some changes but still not getting the correct ans

Hey @mverma_be19
Updated ur code and mentioned in comments : https://ide.codingblocks.com/s/384872

You have to print in sorted order though

https://ide.codingblocks.com/s/385093 It is satisfying only 2 test cases. Also I am trying to print 0 for the nodes which do not exist but it not giving the required output.

Hey @mverma_be19

Dont print 0 for nodes that dont exist
You have to print for every testcase in sorted order
So instead of outputing it save them in vector
Then in main sort that vector and then print