Can anyone help me understand


#1

Why for this input :
[47, 14, 30, 19, 30, 4, 32, 32, 15, 2, 6, 24]
this output is not accepted :
[6 15 32 32 ] [2 4 14 19 24 30 30 47 ]


#2

I’m not sure if the problem statement has changed from the time you had asked the question.
As per current problem statement, input is a single integer (not an array as in your input).
Since, all possible trees are expected as output, output is an ArrayList of TreeNode(s).
So, that we can understand the output in full, expected output in examples is shown in Post order traversal.