I'm given a sequence of characters that are from a pre-order traversal of a binary tree. I'm not given the binary but I need to draw the binary tree based on the sequence of characters from the traversals
From this binary tree, Pre-order traversal:
NZLADRUGBY
In-order traversal:
ALDZNURYBG
My thought was that pre-order traversal sequence would be the easiest to derive a binary tree from and I found that the tree had a height of 3 and from the pre-order traversal I can see that the root will be N and it's left sub tree will be Z but after that I'm unsure what to do as there's the possibility that one sub tree could be empty etc.
Is there any easier way to do this?