I applied online. I interviewed at Amazon (Vancouver, BC)
Interview
Started of with an introduction, then a 45 minute leetcode hard problem. Needed to screenshare and discuss my approach to solving the problem.
For the coding solution, they looked at the time and space complexities of the solution to evaluate the 'answer quality'. I was to explain my reasoning to how I got that time and space complexity.
Interview questions [1]
Question 1
I have a list of integers representing the stock prices in each day. Write a function that returns what days to buy the stock and what days to sell the stock to maximize profit. Initially you can only buy, you can choose to not buy any at all. You can only sell after having bought, and can only buy again after having sold. Try to get as close to O(n) time complexity as possible.
Was given a LRU cache type question; answered exactly but got no offers later; the interview was first behavioral then technical; overall communication is fine but I’d say Amazon interview platform is a bit weird to use
It was good.I was asked 2 questions of Leetcode-
Minimum Operations to Make Binary Array Elements Equal to One I
Binary Tree Maximum Path Sum.
So the interviewer also gave me some hints.
Top companies for "Compensation and Benefits" near you