Behavioral
Questions: Specific question not provided.
- Usual questions included "Tell me about a time you received feedback."
Candidate's Approach
Updated a document with newer stories from past experiences.
Interviewer's Feedback
No feedback provided.
Coding 1
Questions:
-
- Implement a class that receives
k
sorted lists (array lists, not linked lists) in the constructor, with a methodnext()
that returns the next smallest number of all the lists.
- Implement a class that receives
-
- Discussed when the recency should be updated on both
get()
andput()
.
- Discussed when the recency should be updated on both
Candidate's Approach
- Proposed a heap solution for the first problem and took time to correct a few bugs.
- For the LRU Cache, suggested using a simple linked list and discussed the implications of updating recency on both methods.
Interviewer's Feedback
The interviewer seemed to appreciate the questions asked during the LRU Cache discussion.
Coding 2
Questions:
-
215. Kth Largest Element in an Array
- Proposed a heap solution after discussing quickselect.
-
1570. Dot Product of Two Sparse Vectors
- Proposed storing indices of non-zero elements.
Candidate's Approach
- Started with a heap solution for the Kth Largest Element and completed it.
- Coded the Dot Product problem without follow-up questions from LeetCode.
Interviewer's Feedback
The interviewer enjoyed the discussions and questions posed by the candidate.
System design
Questions:
- Design Instagram
- Focused on posting and following, with an emphasis on backend requirements.
Candidate's Approach
Identified requirements and managed to follow up correctly despite missing some initial points.
Interviewer's Feedback
No feedback provided.
Conclusions
- The candidate felt they could have performed better on the system design but believed it was good enough.
- Received confirmation that an offer is forthcoming.