Uber | SDE3 Frontend Interview

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2025-08-13Added By Anonymous
Source: Link

Company: Uber
Role: senior software engineer
Interview Stage: Onsite
Location: unknown
Year: unknown

Original Post Content:

Uber – Senior Frontend Engineer Interview Experience

Round 1 – JavaScript Problem

Uber Driver question: Implement a chainable JS Class (pickup(), drop(), coffeeBreak()) where coffeeBreak() must always execute first.

new UberDriver()
  .pick("Alice", 1)
  .drive(5)
  .coffeeBreak(3)  // always executes first
  .pick("Bob", 2)
  .status()
  .drop()
  .rest(2)

Tested method chaining, promise, and async handling.

Followup Question
Driver can take break anytime but it should execute at beginning only

Round 2 – DSA (Graphs)

Topological Sort (implemented using Kahn’s Algorithm).

Cycle Detection in a Graph (DFS + recursion stack).

Takeaways:

Uber tests JavaScript design patterns + DSA fundamentals.

Strong graph algorithm knowledge is essential.

Even frontend roles have pure algorithm rounds.

Comments