Arista Networks interview question

Verify BST

Interview Answers

Anonymous

Jan 26, 2016

Overall experience of the interview was pretty good.

Anonymous

Feb 11, 2016

Where you asked to code in c++?

Anonymous

Feb 19, 2016

Wouldn't one way to verify this is to do an inorder traversal to see if you get back a sorted list at the end? The total cost in terms of time will be O(n) where n is the number of nodes in the BST.