Panda Guru LogoPanda
Guru

Amazon SDE-1 Interview Experience: A Journey Through Three Rounds

Round 1

Questions: Question 1:
The problem was related to implementing a "copy-paste" functionality using a class. The challenge was to design a system where:

Question 2:
She asked me how C++ implements hash maps internally. I explained the underlying concepts and working mechanisms of hash maps in C++.

Leadership Principles:

Candidate's Approach

I first implemented a brute-force solution using a simple vector, which took O(N) time for both the copy and paste operations. She then asked me to optimize the solution. I used a map-based approach, which optimized the copy function to O(log N) and the paste function to O(1) on average.

Interviewer's Feedback

No feedback provided.


Round 2

Questions: Leadership Principles:

Question 1:
The problem was to design four functions:

  1. Initialize user_id, window_size, and max_request for a user.
  2. Check if the current request for a user is allowed, based on the time window.
  3. Check how many requests were approved in the last window.
  4. Check how many requests were rejected in the last window.
Candidate's Approach

I first implemented a brute-force solution, which took O(N) time. Then, I optimized the solution using binary search, which was fairly straightforward.

Interviewer's Feedback

No feedback provided.


Round 3

Questions: Leadership Questions:

Candidate's Approach

No approach provided.

Interviewer's Feedback

He mentioned that all three interviewers would meet to discuss my feedback, and based on their discussion, they would forward it to the recruiter.