link to my code
Code not passing 2 test cases
@jatin111 Hi buddy, there were unhandled cases such as -
- Print 0 if no such node exist at distance k.
- desired output for each test case in sorted form
And a mistake which i have corrected and also commented, so read the comments.
Rest good job!
Also close the doubt by marking it resolved!
Happy coding!