Connect nodes at same level in binary tree

link to question:
i’ve used BFS using queue to solve it.
i am not able to find where my code is wrong.Below is link to my code.You need to check only connect method in my code.

Give the question link not solution link.

1 Like

i updated the blog.Please check