Uber interview experience Real time questions & tips from candidates to crack your interview

SWE Intern

Uber
upvote
share-icon
4 rounds | 8 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 Months
Topics: Data Structures, Algorithms, OOPs, DBMS, Competetive Programming
Tip
Tip

Tip 1 : Doing competitive programming is very beneficial.
Tip 2 : Be very clear with OOPs and DBMS fundamentals.
Tip 3 : Graphs and DP.

Application process
Where: Campus
Eligibility: No criteria
Resume Tip
Resume tip

Tip 1 : Know end to end about the projects mentioned in the resume.
Tip 2 : Try to include your skills and projects resonating with the keywords mentioned in the job description.

Interview rounds

01
Round
Medium
Online Coding Test
Duration60 Minutes
Interview date12 Aug 2021
Coding problem3

There were a total of 3 problems with partial scoring if you pass some test cases.
Problems scoring distribution: 100 + 300 + 300 = 700

1. Base Conversion

Easy
15m average time
85% success
0/40
Asked in companies
AdobeUberInfosys

You are given a number ‘N’ as a string in base ‘B’. Your task is to convert ‘N’ in base 10. If it’s impossible to convert ‘N’ into base 10, then you need to print -1.

Note :

1. ‘N’ contains only digits ‘0’ to ‘9’ and English letters ‘A’ to ‘F’.
2. Decimal equivalent of 0 is 0, 1 is 1, . . .9 is 9, A is 10, B is 11, . . . F is 15.
Try solving now

2. Redundant Brackets

Easy
15m average time
85% success
0/40
Asked in companies
AdobeUberUKG

Given valid mathematical expressions in the form of a string. You are supposed to return true if the given expression contains a pair of redundant brackets, else return false. The given string only contains ‘(‘, ’)’, ‘+’, ‘-’, ‘*’, ‘/’ and lowercase English letters.

Note :

A pair of brackets is said to be redundant when a subexpression is surrounded by needless/ useless brackets.

For Example :
((a+b)) has a pair of redundant brackets. The pair of brackets on the first and last index is needless. 
While (a + (b*c)) does not have any pair of redundant brackets. 
Try solving now

3. Market Survey

Moderate
0/80
Asked in companies
Tata Consultancy Services (TCS)Uber

Right Answer: For a particular question, the highly chosen option till that point in time is treated as the correct answer. If multiple options have the exact count, then out of those options, the one which was chosen recently is treated as the correct answer.

Score of a Participant: One point will be awarded for each correct answer. No negative points for wrong answers.

Instant Result: This is shared with the Participant instantly after completing his/her exam. (this is equal to the number of correct answers)

Final Result: Only the final top scorer(TOPPER) is announced along with his score.

Note:
At the end of all M Participants completing the exam, the final correct answers get decided.
Based on these answers score of each candidate gets recalculated, and the one with the highest score is the TOPPER!!!
If more than one Participant gets the top score, then the one who attempted the exam first is treated as TOPPER.
Try solving now
02
Round
Medium
Video Call
Duration50 Minutes
Interview date14 Aug 2021
Coding problem1

There was only one graph problem with few follow-ups.

1. M - Coloring Problem

Easy
15m average time
85% success
0/40
Asked in companies
ZomatoUberSamsung

You are given an undirected graph with N nodes in the form of an adjacency matrix. You are also given an integer M.

Your task is to find if you can color the vertices of the graph using at most M colors such that no two adjacent vertices are of the same color.

For example:

If the given adjacency matrix is:
[0 1 0]
[1 0 1]
[0 1 0] and M = 3.

The given adjacency matrix tells us that node 1 is connected to node 2 and node 2 is connected to node 3. 

So if we color vertex 1 with ‘red’, vertex 2 with ‘blue’, and vertex 3 with ‘red’, it is possible to color the given graph with two colors which is less than or equal to M.
Problem approach

Combining solutions for both starting problem as well as follow-up.

Step 1: Little observation: The sum of 2 numbers is odd only if exactly one of them is odd.
Step 2: Only parity of color matters.
Step 3: The problem looks somewhat similar to getting a bipartite graph ( 2-Coloring).
Step 4: If a cycle is present in the graph number of ways is zero. (Try to convince yourself: by taking a small example of a cycle of 3 nodes.)
Step 5: Use a bfs or dfs to find the number of nodes on each level.
Step 6: All nodes on the same level must be colored with the same color.

The number of ways to color a connected component can be break down to 2 cases: (For extending this, just find the number of colors with odd parity and even parity). 
1.) Color all nodes on an odd level with color 1, so even-level nodes have to be colored with color 2.
2.) Color all nodes on an odd level with color 2, so even-level nodes have to be colored with color 1.

The total possible number of ways is the Product of a total number of ways across each component.

Try solving now
03
Round
Medium
Video Call
Duration50 minutes
Interview date14 Aug 2021
Coding problem1

1 low-level design kind of problem with a lot of discussions around the problem.

1. Bus Routes

Moderate
30m average time
70% success
0/80
Asked in companies
UberAmerican ExpressMcKinsey & Company

This time Ninja is helping a lost passenger on a bus stop to reach his destiny with the minimum number of buses he needs to change, on the bus stop a chart is present which contains 'N' arrays. An array 'A' denotes the route that a bus will take, such that A[i] denotes the bus stop 'i'th bus will travel to.

For Example
If the bus route is [3, 6, 7], then it will travel  in sequence 
3 > 6 > 7 > 3 > 6 > 7….

You can travel between the bus stations through buses only. You are given the source bus station and destination bus station. You need to determine the minimum number of buses you need to reach the destination. If it is not possible to reach destination return -1.

Note:
Values of A[i] are distinct.
Problem approach

The first step was to clear the requirements as initially, the problem was vague.
After asking some questions, the problem was given a few bus routes, we have to answer queries efficiently.
Query: What are the following buses we can take if we go from city city1 to city2?

Approach: We can use some data structures to answer the queries efficiently.
// a map from {city1, city2} to all the buses which drive that between those cities.
unordered_map , unordered_set> citiesToBus;

We can populate this data structure using the initial bus routes given.
Then we can answer the query directly.

Follow up: The first bus we can take to travel from city1 to city2 if we are in city1 at the time T.

We have to make a slight modification to our data structure:
// a map from {city1, city2} to all the buses with time which drive that between those cities.
unordered_map , set>> citiesToBus;

To answer the query now: 
We can take the lower bound in the set of buses available from city1 to city2.

Try solving now
04
Round
Medium
HR Round
Duration40 Minutes
Interview date14 Aug 2021
Coding problem3

Timings: Morning 11:30 AM.

1. Basic HR Questions

Initially discussed my last internship experience.

HR questions: 

1.) Strengths. 

2.) Weaknesses.

Problem approach

Tip 1 : Be clear about why you used a particular tech stack.
Tip 2 : What you did end to end.

2. DBMS Questions

DBMS standard problems: 1.) ACID properties. 2.) SQL vs NO-SQL. 3.) Concurrency and transactions


 

Problem approach

Tip 1 : Be very clear with the DBMS fundamentals.
Tip 2 : ACID properties, Schedules, and writing SQL queries are most important from DBMS.

3. OOPS Questions

OOPS questions: 1.) Types of polymorphism with use cases. 2.) Use case for Abstraction.

Problem approach

Tip 1 : Must know all 4 pillars of OOPs.
Tip 2 : Should be able to code in an object-oriented way.

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

What is 3 + 2 * 4 based on operator precedence?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 1
2 rounds | 4 problems
Interviewed by Uber
1011 views
0 comments
0 upvotes
company logo
SDE - 1
3 rounds | 5 problems
Interviewed by Uber
3490 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 5 problems
Interviewed by Uber
627 views
0 comments
0 upvotes
company logo
Software Engineer
3 rounds | 7 problems
Interviewed by Uber
1546 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SWE Intern
4 rounds | 6 problems
Interviewed by Microsoft
2131 views
0 comments
0 upvotes
company logo
SWE Intern
3 rounds | 4 problems
Interviewed by Google
931 views
0 comments
0 upvotes
company logo
SWE Intern
1 rounds | 2 problems
Interviewed by Google
899 views
0 comments
0 upvotes