My guess is that the values: 1,2,3 are the leaves of the tree and the -1s are empty slot values from somewhere.
A binary tree with those 3 values could have 1 and 3 as the left and right childern...
Type: Posts; User: Norm
My guess is that the values: 1,2,3 are the leaves of the tree and the -1s are empty slot values from somewhere.
A binary tree with those 3 values could have 1 and 3 as the left and right childern...
Do you have an instructor that you could ask about your question?
Where did that output come from?