I applied through an employee referral. I interviewed at Amazon (Bengaluru) in Feb 2019
Interview
Online Coding Test: Coding challenge (2 scenarios) and Coding approach (elaborate why you code the way you do) – 105 minutes: One question based on Two-pointer approach with extra use of hashmap, on was simple iteration with finding min in every loop. ( Tip: Solve all coding questions from interview experiences of GFG and LeetCode.)
Interview questions [1]
Question 1
Round 1:
Easy Graph application problem, Optimise it using DP, further optimise space by removing unnecessary data.
Easy Data Structures problem using hashmap and a counter.
Round 2:
Find the kth the smallest element in an array.
Binary Search tree problem(GFG medium level)
Round 3:
RU Cache Implementation
Round 4:
Implement Hashmap with a function that returns the order of insertion of <key, value> pairs into it
I applied through college or university. The process took 1 day. I interviewed at Amazon (Haiderabad) in Aug 2020
Interview
Initially it went fine, but when it was time to wind up the interviewer created huge mess.
He changed the direction of answering the questions and got in the incorrect way for approaching them.
Interview questions [1]
Question 1
Two easy programming questions:
i) Binary search
II) Breadth First Search
I applied online. I interviewed at Amazon in Jan 2021
Interview
Two leetcode medium-easy problems. I ran out of time for part 1, debugging though. Don't overthink it. Part three wasn't that bad. They give you a good amount of time to answer the behavioral questions.
Interview questions [1]
Question 1
return all two sum pairs
validate one BST is a subtree of another