Amazon | Virtual Onsite | SDE2
Company: Amazon
Role: SDE2
Interview Stage: Onsite
Location: unknown
Year: unknown
Original Post Content:
Total 4 rounds in the same day, each also asked 2 Leadership Principles (LP) questions.
HLD:
Design comment API for a social media site.
Coding/LLD:
Given an integer matrix, where 0 represents water and >0 represents land, find the size of a "pond" from an input coordinate. All 8 positions count as adjacent (simple BFS).
Given a file containing all search history, implement a search suggestion function from user input (Trie, follow-up asked for an O(1) solution, answered with a hashmap brute force).
Given a list of keywords and a document string, find the shortest segment in the document that contains all keywords (I just brute forced, iterate the entire document and get all keyword indexes in a hashmap, then compare the minimum of all indexes).
Not sure about the result yet, but I can feel my performance just degraded throughout the day, and I kind of bombed the last one...
Update: Rejected. Feedback was citing that the panel felt like it was a cultural fit but technically immature. So, passed on Leadership Principles but failed on the tasks, I suppose.