Software Engineer • Senior-Level
San Francisco Bay Area
Passed
Software Engineer • Senior-Level
High QualityRound Type
Full Journey
Interview Date
Feb 9, 2022
Interview Process
5 rounds
Interview Source
Not provided
Interview Summary
Interview Rounds Overview
- Round 1: Phone Screen
- Round 2: Virtual Onsite
- Round 3: Virtual Onsite
- Round 4: Virtual Onsite
- Round 5: Hiring Manager
Interview Details
Phone Screen
In the phone screen, the interviewer asked me two questions. The interviewer was not very engaging but clear in their explanations.
-
Given a campus with buildings, rooms, and users, and a
receive_message(user, message)function, how would I ensure that users in the correct room receive messages containing the content, building, and room information? The message format includes content, building, and room. Follow-up: How to handle messages where the room is null, requiring the message to be sent to all users in the building?- My solution involved temporarily searching for all users in the room. The interviewer suggested assigning a null value as a key to the building to store all users.
-
Design a
myiteratorwith a peek function using an existing iterator.- Initially, I suggested creating a list for peeking, but the interviewer asked for an O(1) space solution.
- I proposed using two internal iterators, one fast for peeking and one slow for next. The interviewer mentioned the inability to copy iterators unless there's a list, which wouldn't be O(1) space.
- I suggested using one internal iterator and pre-calling the internal iterator's next method to
Unlock Full Details
Create a free account to unlock this interview experience report.