My code is showing wrong output. Could you please tell where i am going wrong?
Left View of Binary Tree. Help needed in debugging
problem was in buildtree(), since you are reading input in inorder traversal fashion, whereas it should be read in level order fashion.
modified code is here: https://ide.codingblocks.com/s/209782
thanks