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

SDE - Intern

Uber
upvote
share-icon
2 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Journey
In my 4th semester, I started learning Data Structures and Algorithms (DSA) in C++. During the 5th semester, Uber visited my college and extended a 6-month internship opportunity. I commenced my interview preparation around April and had almost completed it by the end of July.
Application story
Around mid-August, I completed the form, and by the end of August, the first online assessment took place. The results of the online assessment were promptly shared on the same day. Following this, two coding interviews were arranged within a week after the online assessment.
Why selected/rejected for the role?
That's wonderful news! I'm thrilled to hear that both interviews went well, and the interviewers were impressed with your solid understanding of coding and Computer Science fundamentals. Keep up the outstanding work!
Preparation
Duration: 6 months
Topics: Data Structures, Algorithms, Dynamic Programming, OOPS, Operating System, DBMS
Tip
Tip

Tip 1: It's essential to solve at least one standard interview preparation sheet to acquaint yourself with common interview questions and enhance your problem-solving skills.
Tip 2: Focus on preparing fundamental Computer Science topics, including Object-Oriented Programming (OOPS), Operating Systems (OS), and Database Management Systems (DBMS) to bolster your technical knowledge for interviews.

Application process
Where: Campus
Eligibility: 7.5+ CGPA
Resume Tip
Resume tip

Tip 1: Make certain to showcase at least 2 significant and remarkable projects on your resume that effectively demonstrate your skills and experiences.
Tip 2: Include all your coding profiles, regardless of the number of questions you have attempted on each platform. Highlighting your coding profiles can provide interviewers with valuable insights into your problem-solving abilities and coding expertise.

Interview rounds

01
Round
Easy
Online Coding Interview
Duration90 minutes
Interview date12 Aug 2021
Coding problem3

1. Base Conversion

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

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. Longest Substring with At Most K Distinct Characters

Moderate
20m average time
80% success
0/80
Asked in companies
AmazonMedia.netGoldman Sachs

You are given a string 'str' and an integer ‘K’. Your task is to find the length of the largest substring with at most ‘K’ distinct characters.

For example:
You are given ‘str’ = ‘abbbbbbc’ and ‘K’ = 2, then the substrings that can be formed are [‘abbbbbb’, ‘bbbbbbc’]. Hence the answer is 7.
Try solving now

3. Bursting Balloons

Moderate
40m average time
60% success
0/80
Asked in companies
Samsung ElectronicsAdobeMicrosoft

You are given an array 'ARR' of N integers. Each integer represents the height of a balloon. So, there are N balloons lined up.

Your aim is to destroy all these balloons. Now, a balloon can only be destroyed if the player shoots its head. So, to do the needful, he/ she shoots an arrow from the left to the right side of the platform, from an arbitrary height he/she chooses. The arrow moves from left to right, at a chosen height ARR[i] until it finds a balloon. The moment when an arrow touches a balloon, the balloon gets destroyed and disappears and the arrow continues its way from left to right at a height decreased by 1. Therefore, if the arrow was moving at height ARR[i], after destroying the balloon it travels at height ARR[i]-1. The player wins this game if he destroys all the balloons in minimum arrows.

You have to return the minimum arrows required to complete the task.

Try solving now
02
Round
Easy
Video Call
Duration45 minutes
Interview date14 Aug 2021
Coding problem2

1. Word Search

Moderate
20m average time
80% success
0/80
Asked in companies
AmazonUberCodezero2pi

You are given character matrix of dimension N * M. Then you are given 'Q' queries, each query consists of a word 'W', and you have to tell whether it is possible to form word 'W' by choosing some adjacent characters from this matrix.

Note:

1. Two characters are said to be adjacent if they share a side or corner i.e. for a cell inside the matrix have 8 adjacent cells (if they exist).
2. One character in the matrix will not be considered twice for forming a word.
3. All the characters in the matrix and words consist only of uppercase English alphabets only.
Problem approach

You are provided with an m x n grid of characters, represented by the variable 'board', and a string 'word'. The task is to determine whether the given 'word' can be constructed using letters from sequentially adjacent cells in the grid. Adjacent cells are those that are horizontally or vertically neighboring. It's essential to note that the same letter cell cannot be used more than once in constructing the word.

If the word can be formed following these rules, the function should return true; otherwise, it should return false.

Try solving now

2. LCS of 3 strings

Hard
45m average time
50% success
0/120
Asked in companies
UberD.E.Shaw

Given three strings A, B and C, the task is to find the length of the longest common sub-sequence in all the three strings A, B and C.

A subsequence of a string is a new string generated from the original string with some characters(can be 0) deleted without changing the relative order of the remaining characters. (For eg, "cde" is a subsequence of "code" while "cdo" is not). A common subsequence of two or more strings is a subsequence that is common to all the strings.

Note
You don’t have to print anything, it has already been taken care of. Just complete the function. 
If there is no common subsequence, return 0.
Problem approach

The idea is to take a 3D array to store the 
length of common subsequence in all 3 given 
sequences i. e., L[m + 1][n + 1][o + 1]

1- If any of the strings are empty then there
is no common subsequence at all then
L[i][j][k] = 0

2- If the characters of all sequences match
(or X[i] == Y[j] ==Z[k]) then
L[i][j][k] = 1 + L[i-1][j-1][k-1]

3- If the characters of both sequences do 
not match (or X[i] != Y[j] || X[i] != Z[k] 
|| Y[j] !=Z[k]) then
L[i][j][k] = max(L[i-1][j][k], 
L[i][j-1][k], 
L[i][j][k-1])

Try solving now

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 remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by Uber
1893 views
1 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Uber
4717 views
2 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 4 problems
Interviewed by Uber
0 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 5 problems
Interviewed by Uber
966 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15605 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15499 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10216 views
2 comments
0 upvotes