Generating binary tree from pre and in order

explanation math algo

Just a little script

Generate a binary tree of n integers, from 0 to n-1, given the pre and in order of the specific tree.