how to construct Binary Tree using the given Level Order Array
How to construct Binary Tree using the given Level Order Array
@jatin111 bro i have commented on your last thread check that!
Main() {
this.root = buildTree(sc);
}
Now see this -
bt.buildTree(sc);
Now you are calling the method two times on single input, so correct this mistake of yours!