UVA #10410 Tree Reconstruction
- by Vincent
I have worked on UVA 10410 Tree Reconstruction several days. But I can't get the correct answer unitl now.
I have used an algorithm similar to the one which we always use to recovery a binary tree through the preorder traversal and the inorder traversal. But it can't work.
Can anyone help me? Thanks in advance.