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

SDE - 2

Uber
upvote
share-icon
6 rounds | 7 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: Data Structures, Algorithms, Graphs, Dynamic programming, Trees, stack, queue, System Design
Tip
Tip

Tip 1 : Be consistent in the preparation. Practice atleast one question everyday
Tip 2 : Make relevant notes that you can go through on the day before the interview
Tip 3 :Try to note your progress by giving timed contests

Application process
Where: Linkedin
Eligibility: No
Resume Tip
Resume tip

Tip 1 : Clearly mention the details of the projects that are relevant to the company that you are applying for
Tip 2 : Ensure that there are no grammatical mistakes and that you have highlighted the important keywords in your resume

Interview rounds

01
Round
Medium
Telephonic
Duration60 minutes
Interview date8 Feb 2020
Coding problem1

It was a telephonic interview at 10 in the morning. Interviewer seemed cool.

1. Algorithm to find best insert position in sorted array

Easy
10m average time
85% success
0/40
Asked in companies
Tata Consultancy Services (TCS)UberHike

You are given a sorted array 'arr' of distinct values and a target value 'm'. You need to search for the index of the target value in the array.


Note:
1. If the value is present in the array, return its index.
2. If the value is absent, determine the index where it would be inserted in the array while maintaining the sorted order. 
3. The given array has distinct integers.
4. The given array may be empty.



Example:
Input:  arr = [1, 2, 4, 7],  m = 6 

Output: 3

Explanation: If the given array 'arr' is: [1, 2, 4, 7] and m = 6. We insert m = 6 in the array and get 'arr' as: [1, 2, 4, 6, 7]. The position of 6 is 3 (according to 0-based indexing)


Try solving now
02
Round
Medium
Face to Face
Duration60 minutes
Interview date24 Oct 2020
Coding problem2

The interview was in the morning at 10 AM in the office meeting room.

1. Frontend and Backend Tasks

Given 2 arrays - frontend and backend tasks . each number in these array represents the complexity needed to run the task.There is a server that has to run these tasks., the server is supposed to run one frontend and one backend task together only at a timeThe aim is to have lowest complexity server- (complexity of server needed = frontend task complexity + backend task complexity) such that all the tasks can get paired . We have to return the set of pairs.constraints-each pair has to have one backend task and one frontend task one task can be mentioned in one pair only mention time complexity and space complexity

Problem approach

Sort both arrays and start from one end of first and opposite end from second.and make pairs
I was trying to find the pairs as well as updating the max complexity needed but that approach was failing as it needed backtracking to correctly assign all the possible pairs.
The interviewer gave me a hint to solve it in parts-
First calculate the lowest complexity that the server can have(by using the same method mentioned above) and then calculating the pairs

2. House robber

Moderate
15m average time
80% success
0/80
Asked in companies
SalesforceUberGoogle

Mr. X is a professional robber planning to rob houses along a street. Each house has a certain amount of money hidden.


All houses along this street are arranged in a circle. That means the first house is the neighbour of the last one. Meanwhile, adjacent houses have a security system connected, and it will automatically contact the police if two adjacent houses are broken into on the same night.


You are given an array/list of non-negative integers 'ARR' representing the amount of money of each house. Your task is to return the maximum amount of money Mr. X can rob tonight without alerting the police.


Note:
It is possible for Mr. X to rob the same amount of money by looting two different sets of houses. Just print the maximum possible robbed amount, irrespective of sets of houses robbed.


For example:
(i) Given the input array arr[] = {2, 3, 2} the output will be 3 because Mr X cannot rob house 1 (money = 2) and then rob house 3 (money = 2), because they are adjacent houses. So, he’ll rob only house 2 (money = 3)

(ii) Given the input array arr[] = {1, 2, 3, 1} the output will be 4 because Mr X rob house 1 (money = 1) and then rob house 3 (money = 3).

(iii) Given the input array arr[] = {0} the output will be 0 because Mr. X has got nothing to rob.
Problem approach

Didn't get enough time to code the solution but explained the approach
We can do this using DP
We can maintain 2 arrays - one represents the ans if we start from first house and the other represents the answer if we start. from the second house.Then simply looping over the array and calculating these array's elements.

Try solving now
03
Round
Medium
Face to Face
Duration60 minutes
Interview date21 Oct 2020
Coding problem1

The interview was at 11 AM in the meeting office.

1. Running median

Hard
46m average time
50% success
0/120
Asked in companies
GoogleHikeMyntra

You are given a stream of 'N' integers. For every 'i-th' integer added to the running list of integers, print the resulting median.

Problem approach

Started with the brute force solution of insertion sort
Interviewer asked to optimize.
Gave the solution which uses two heaps - max heap and min heap. the difference in size of both heaps cannot be more than 1. And we might need to remove elements from one heap to other heap as more input numbers are added

Try solving now
04
Round
Medium
Face to Face
Duration60 minutes
Interview date21 Feb 2020
Coding problem1

The interview was at 1 AM.

1. System Design

Was asked to design a notification service for website like Facebook.
Whenever someone liked our post or commented on our post

Problem approach

Tip 1: Asked a lot of questions to get clarity on the requirement
Tip 2: Keep in mind how to modularize the various components in the design
Tip 3: Mention the assumptions that you are taking

05
Round
Easy
Face to Face
Duration60 minutes
Interview date21 Oct 2020
Coding problem1

The meeting was at 2 PM in the office meeting room.

1. Resume and Past Experience Based Questions

There were a lot of questions, related to my resume, past experience, the technologies i had worked on. And then there were questions regarding the technologies and tech stack that they work on as the interviewer was trying to find whether my experience matches the requirements of the job
Questions related to frontend technologies like polymer, react.
Questions from C++ and databases were also asked.

Problem approach

Tip 1: Be truthful. Don't try to fake things you don't know about.
 

06
Round
Easy
Telephonic
Duration60 minutes
Interview date27 Feb 2020
Coding problem1

10 AM

1. Project Discussion

Deeper discussion about all the projects i did in the past company.

Problem approach

Tip 1: Know well about the projects that you have done in the past

 

Here's your problem of the day

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

Skill covered: Programming

How do you select an element by class name in CSS?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 2
4 rounds | 5 problems
Interviewed by Uber
0 views
1 comments
0 upvotes
company logo
SDE - 2
2 rounds | 2 problems
Interviewed by Uber
1711 views
0 comments
0 upvotes
company logo
SDE - 2
3 rounds | 4 problems
Interviewed by Uber
1761 views
0 comments
0 upvotes
company logo
SDE - 2
2 rounds | 2 problems
Interviewed by Uber
1914 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 2
5 rounds | 12 problems
Interviewed by Walmart
26721 views
8 comments
0 upvotes
company logo
SDE - 2
3 rounds | 5 problems
Interviewed by Amazon
5834 views
0 comments
0 upvotes
company logo
SDE - 2
6 rounds | 8 problems
Interviewed by Amazon
4269 views
0 comments
0 upvotes