mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-05-22 16:31:15 -04:00
Update construct_tree_inorder_preorder.py
This commit is contained in:
parent
38cbe1c55b
commit
e7d855b99e
1 changed files with 4 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue