YourAlly

Uber Principal coding interview questions

These are the 4 coding questions YourAlly has tagged for Uber at Principal. Principal is the common India title for this level. YourAlly treats it as Staff (E6), the same level as Google L6, Meta E6 and Amazon L7.

A coding round at a large tech company usually runs 45 to 60 minutes with one or two problems. You write code that runs, test it on your own examples and state its time and space cost. At this level interviewers also expect clean code quickly and edge cases you raise before they do.

Practice a mock Uber Principal coding loopPractice Uber coding questions

Validate Trip State TransitionsFree to read

Given allowed transitions as edges and a sequence of states, return whether the sequence is valid starting from 'requested'.

Input: edges = [[requested,matched],[matched,en_route],[en_route,completed]], seq = [requested,matched,completed] Output: false

3 more coding questions

  1. Detect Double Assign Locked
  2. Nearby Drivers in a Grid Locked
  3. Serialize Concurrent Trip Updates Locked

Sign up free to practice all 4

Related pages

More Uber Principal rounds

Uber coding at other levels

Other companies at this level

Company guide

Uber interview guide in Academy