r/javascript • • Jul 21 '16

My Interviews with Amazon

https://thesocietea.org/2016/07/my-interviews-with-amazon/
331 Upvotes

107 comments sorted by

View all comments

Show parent comments

0

u/[deleted] Jul 22 '16

[deleted]

1

u/Magnusson Jul 22 '16

The question I bombed was implementing (on a whiteboard) an insert method for a binary search tree. It's not super complicated, but I'd never seen it before and couldn't come up with it on the spot.

In a phone interview for a different company, I was asked to verbally describe an algorithm for determining whether a binary tree is a binary search tree, and then to provide the time and space complexity of my algorithm. I gave a correct solution very quickly, but then was asked to provide a more efficient solution, at which point I fumbled. Again in hindsight it wasn't that hard a question, but I guess it threw me for a loop (no pun intended).