Fix the wrong Answer issue for test case when there is only one element in the list


When there is only one element in the list, the inorder, preorder and postorder will be the same.
It’s giving below error
My Program Output :
Returned tree’s PreOrder traversal : [ 1 ]
Returned tree’s PostOrder traversal : [ 1 ]

Expected Output :
Inorder Traversal : 1


No one ever should solve this problem anymore :stuck_out_tongue:


It’s fixed. I sent the same solution as N days ago and now it passed. Only issue is I lost a few hundred points because of their mistake.


This problem is still there.


Different decade, same error