Print all nodes at a distance k from a given node

All of the test cases are failing.

@aastha2711 you have to print the ans in sorted order so store it in vector then sort it then display

Still all the test cases are failing.

@aastha2711 here check with this


if not able to understand the error by comparing then tell

1 Like