Amazon interview question

A coding question based on data structure.

Interview Answer

Anonymous

7 Mar 2022

I first discussed the possible solutions that I had in mind and coded the one I finally concluded at. Then the interviewer asked for a further optimised solution and I was not able to come up with it.