From e7d855b99ec66c501631e7feac3ed4a68da5f8ad Mon Sep 17 00:00:00 2001 From: bt3gl <138340846+bt3gl-google@users.noreply.github.com> Date: Sun, 30 Jul 2023 15:51:57 -0700 Subject: [PATCH] Update construct_tree_inorder_preorder.py --- trees_and_graphs/construct_tree_inorder_preorder.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/trees_and_graphs/construct_tree_inorder_preorder.py b/trees_and_graphs/construct_tree_inorder_preorder.py index efb6d04..765f32a 100644 --- a/trees_and_graphs/construct_tree_inorder_preorder.py +++ b/trees_and_graphs/construct_tree_inorder_preorder.py @@ -1,3 +1,7 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- +# author: bt3gl + def build_tree(preorder: list[int], inorder: list[int]) -> Optional[TreeNode]: def helper(i_left, i_right, index_map):