Sorted Array to balanced BST - Fixing test case for only one element in array

Tags: #<Tag:0x00007f182d1eb418>



Please fix the test case for having only one element array.
My Program Output :
Returned tree’s PreOrder traversal : [ 1 ]
Returned tree’s PostOrder traversal : [ 1 ]

But the ide throwing below the expected output.
Expected Output :
Inorder Traversal : 1

For only one element all traversals must be the same.