Please change description as we have to do level order traversal not preorder traversal


Comment body goes here.


yes you are right



I lost points for not reading this comment before submitting… The topic description needs to be corrected!




Yes me too I was doing preorder traversal then had to check the answer code.


yes exactly, please change it.


I made the solution according to pre-order traversal and later I figured out from failed submission that they want level order traversal. Please do change it.