Uber | L4 | India | Reject
Company: Uber
Role: software engineer ii
Interview Stage: Phone Screen
Location: India
Original Post Content:
The recruiter reached out to me through LinkedIn.
YEO: 5
Both rounds were coding rounds scheduled over Zoom
1st Round
The interviewer was extremely friendly. He asked me to calm myself down, and can go grab coffee/tea if I want. Only one question was asked. Interviewer told me that he is not expecting answer or most optimized answer, but will look at my approach. I missed optimization part of not putting cell in grid if we have reached it with bigger value of K.
shortest-path-in-a-grid-with-obstacles-elimination
2nd Round
Given continuous input stream of data
User City Event Timestamp
user1 Blgr RIDE_REQUESTED timestamp1
user2 Blgr RIDE_REQUESTED timestamp3
user1 Blgr RIDE_CANCELLED timestamp2
user1 Blgr COMPLETED timestamp4
The input stream is not ordered based on timestamp, as in an event occurring later can come first. You have to put this in a data structure to support timestamp based queries, like Give list of RIDE_REQUESTED for bglr city from [timestamp1,.. timestamp5]
Solutions discussed:
Throughout interview, the interviewer kept suggesting me to use basic data structures and think what STL library actually use to implement Map. I really enjoyed this round cause of the discussion that happened and how good the interviewer was quickly grasping whatever solution I was suggesting.