Please fix the test case


#1

Your submission failed for the following input:

A : [ 1 ]

Your function returned the following :

Returned tree's PreOrder traversal : [ 1 ]Returned tree's PostOrder traversal : [ 1 ]

The expected returned value :

`Inorder Traversal : 1

The inorder, preorder and postorder will be same for the input [1].


#2

Try to change the following
Use this “final List A” instead of this “final int[] A”
and Also submit using jdk7.
its works for me.