Google L5 | Twitter SSE | LinkedIn SSE | FB E5 | Uber SSE | MS SSE
Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2021-10-25Added By Anonymous
Source: Link
Company: Uber
Role: Senior Software Engineer
Interview Stage: Phone Screen
Location: Bay Area
Year: 2021
Original Post Content:
-----------------
Uber
Position: SSE
Phone round
- One single question related to the matrix and shortest path. Don't remember seeing the exact question in LC, but there are few similar ones. The solution required multiple BFS operations.
- Had a very nice interaction with the interviewer. Coded the problem completely and we executed for sample test cases and all the cases worked.
- Interviewer pointed out one or two small mistakes. [I would have caught it later when I execute it I guess]
- I used multiple BFS calls and extra visited boolean matrix, the interviewer wanted me to optimize to remove addition space. Gave me some hints, before I could come up with an approach we ran out of time.
Recruiter was very friendly and responsive.
Time taken to get the result: 3 days
Result: Reject :(
Post interview analysis: Mostly because I could not come up with the optimal approach. Code was slightly bigger and took time to make it completely executable without bugs and hence ran out of time to quickly think of the optimal approach. Later realized that we could do it with a single BFS by adding multiple sources into the queue at the same time. A common approach used in many BFS questions.
------------------------