hey
i have submitted same code on leet code and passed all the cases …/…here i dont know y this 3rd test case is showing wrong answer where is logically my code is correct
https://ide.codingblocks.com/s/115450
1 test case for PRINT ALL NODES AT DISTANCE K FROM A GIVEN NODE
I am also facing the same problem. I’ve tried various test cases, it passes them all.
But on submitting test case 3 is failing.
please check it.
if you figure it out, just let me know the test case.
([email protected])