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
- Detect Double Assign Locked
- Nearby Drivers in a Grid Locked
- Serialize Concurrent Trip Updates Locked
Related pages
More Uber Principal rounds
- Behavioral 4 questions
Uber coding at other levels
- SDE-3 4 questions
- Senior Principal 4 questions
- Senior EM 4 questions
Other companies at this level
- Adobe Principal 4 questions
- Amazon Principal 6 questions
- Apple Principal 7 questions
- Cisco Principal 3 questions
- Google Principal 14 questions
- IBM Principal 3 questions