Question d’entretien chez Amazon

How can you construct a balanced binary search tree when you're given a sorted array.

Réponse à la question d'entretien

Utilisateur anonyme

15 janv. 2021

create a recursive function that sets the parent node to the midpoint array and the left child is the recursive call of first half of the array, right child is 2nd half of the array.