Https://leetcode.com/explore/challenge/card/august-leetcoding-challenge-2021/613/week-1-august-1st-august-7th/3871/
I would really appreciate if you will debug my code and tell the error
i have corrected ur code also… basically u are doing bfs… so accordingly i have made changes…
what was the mistake?
since it is a n arr tree so u have to travel level by level… suppose there are 2 nodes in tree at present… so u have to consider both of them at a present lvl and then push the children accordingly for next lvl… just go through my code u will understand the changes i have made…
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.