Update bst_convert_sorted_array.py

This commit is contained in:
bt3gl 2023-08-08 15:22:34 -07:00 committed by GitHub
parent 75bb0277cd
commit cba141be6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,11 +2,8 @@
# -*- coding: utf-8 -*-
# author: bt3gl
# note that there is no unique solution, and different choices
# for the root node would reflect on p is defined
def convert_sorted_array_bst(nums):
def convert_sorted_array_to_bst(nums):
def helper(left, right):