employer cover photo
employer logo

VMware interview question

Given a tree, how would determine if it is a binary search tree ?

Interview Answers

Anonymous

3 Sept 2017

Do a inorder traversal of the tree and expect a sorted o/p for BST.. if the order is not sorted, then the tree is not BST

Anonymous

8 June 2017

A simple swap pointers routine with each pointer using its own mutex, emphasis on use of multiple mutexes for locking and deadlock avoidance.

7