employer cover photo
employer logo

VMware interview question

* Construct a BST tree from sorted array.

Interview Answer

Anonymous

Sep 26, 2017

Find the middle element and make it root. Recursively call the function to make a left and right sub tree. O(N)