Print all nodes at distance k


it passes only one test case

@naazsayma123 print in sorted order

what changes i have to made in this ?

@naazsayma123 when you are printing dont print store in vector and sort it then display


here is my corrected code
it is not working fine
please debug it

@naazsayma123 check for this
15
12 10 17 22 20 85 74 38 23 64 46 51 65 99 87
10 12 17 20 22 23 38 46 51 64 65 74 85 87 99
1
17 3

what correction i have to made in my code?

@naazsayma123 your code is too big too many functions
compare it with this