buildTreeHelper
that takes the current range of inorder sequence to consider.None
.buildTreeHelper
for the left subtree with the inorder range before the root's index.buildTreeHelper
for the right subtree with the inorder range after the root's index.