Update and rename construct_tree_inorder_preorder.py to construct_bt_inorder_preorder.py

This commit is contained in:
marina 2023-08-03 13:14:55 -07:00 committed by GitHub
parent 753ce86ad2
commit 9cfd35035a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# author: bt3gl # author: bt3gl
def build_tree(preorder: list[int], inorder: list[int]) -> Optional[TreeNode]: def build_tree(preorder: list[int], inorder: list[int]) -> Optional[Node]:
def helper(i_left, i_right, index_map): def helper(i_left, i_right, index_map):