Finding two trees with the same post- and preorder

68 views Asked by At

I am looking for two different search trees with at least 4 nodes. The trees don't have to have the general search tree attributes.

The postorder and preorder from tree A has to be the same as the post- and preorder of tree B.

I don't really understand how to do that so that both trees are not identical.

Grateful for any hints.

0

There are 0 answers