Trees- all given nodes at distance K

why does it show seg fault? i cant figure out pls help

@tusharaggarwal272 kindly help me out

here is your corrected code:


if this solves your doubt please mark it as resolved :slight_smile:

@aa1 two test cases are still not passing