Describe an algorithm that, given a sorted array A, construct a BST 1) containing all elements of
Fantastic news! We've Found the answer you've been seeking!
Question:
Describe an algorithm that, given a sorted array A, construct a BST 1) containing all elements of A and 2) of minimal depth. Can you make your algorithm run in linear time?
Related Book For
Introduction to Algorithms
ISBN: 978-0262033848
3rd edition
Authors: Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest
Posted Date: