Can you help to explain the logic of how to do draw the original binary tree based on traversal results? I know pre-order and in-order traversal, but I can't figure out where to start with this question. Many thanks in advance!
A binary tree has this pre-order traversal result: A,B,D,H,I,E,F,C,G,K,J (TreeNodes)
And the same tree gives the following in-order traversal: B,H,I,D,A,C,F,E,K,G,J.
Can you draw the tree structure?