My code is not passing test case 3
hi… ur code is fine… just remove the unnecessary things like the lca one… it should work fine…also if no node is present at distance k then print 0… https://ide.codingblocks.com/s/601318 refer to my code
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.