1
/ \
2 3
/ \ /
4 5 6
1
/ \
2 3
/ \ /
4 5 6
hello @hg11110000
1
/ \
2 3
/ \ /
4 5 6
here node 5 and 6 are overlapping so in that case we need to consider right most node (among overlapping node) in our case it is 6.
that is why we have 4 2 6 3 in our output.
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.