code looks all correct then also wrong output !!!
please rectify and tell the mistake in my code…
code looks all correct then also wrong output !!!
please rectify and tell the mistake in my code…
@hg11110000 your code for VOP is correct but you are building tree incorrectly!
Make sure that you are receiving input in level order form(and not preorder!)