employer cover photo
employer logo

Pregunta de entrevista de VMware

* Construct a BST tree from sorted array.

Respuesta de la entrevista

Anónimo

26 sept 2017

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