Amazon Interview Question

Create a stack using two queues.

Interview Answer

Anonymous

Oct 15, 2015

My answer had a slight bug and did all the computation on reads, the interviewer asked me to flip it around to make reads faster and do the computation on writes. I really struggled with this and it was the closest I came to 'failing' a question during the whole interview process.