Pint all nodes at distance k

3/4 test case are failing. can you tell me error of my code?

hello @nilotpal

a) store all ur output data in vector and then sort the vector and print.

b) if output vector is empty the print 0

Its pinting 0 for both test case. whats the error?

Can you reply a bit soon?

pass ur vector by reference

still getting wrong answer :expressionless:

cehck now

1 Like