Tree: Depth-First Search - Construct Tree from Inorder and Postorder
Consider two approaches to build a binary tree from inorder and postorder traversals: (1) Brute force recursion with linear search for root index, and (2) Optimized recursion using a hash map for index lookup. When is the brute force approach preferable over the optimized one?
