Upload Button Icon Add office photos

Uber

Compare button icon Compare button icon Compare
4.2

based on 813 Reviews

Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards

zig zag pattern zig zag pattern

Filter interviews by

Uber SDE Interview Questions and Answers

Updated 16 Jan 2025

Uber SDE Interview Experiences

2 interviews found

SDE Interview Questions & Answers

user image Anonymous

posted on 16 Jan 2025

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

Leetcode medium questions, 45 mins

Round 2 - One-on-one 

(2 Questions)

  • Q1. HLD question - cant disclose
  • Q2. Design LRU cache

SDE Interview Questions & Answers

user image Anonymous

posted on 4 Jun 2023

Interview experience
5
Excellent
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via LinkedIn and was interviewed in Dec 2022. There were 3 interview rounds.

Round 1 - Resume Shortlist 
Pro Tip by AmbitionBox:
Keep your resume crisp and to the point. A recruiter looks at your resume for an average of 6 seconds, make sure to leave the best impression.
View all tips
Round 2 - Coding Test 

3 coding questions one on array

Round 3 - Technical 

(2 Questions)

  • Q1. Leetcode problem called 01 island
  • Q2. Leetcode problem no of ilsands

Interview Preparation Tips

Interview preparation tips for other job seekers - do leetcode as much as possible

SDE Interview Questions Asked at Other Companies

asked in Infosys
Q1. Longest Increasing Subsequence Problem Statement Given an array o ... read more
asked in Infosys
Q2. Return Subsets Sum to K Problem Statement Given an integer array ... read more
asked in Nagarro
Q3. Partition to K Equal Sum Subsets Problem Given an array of intege ... read more
asked in Nagarro
Q4. Sort a "K" Sorted Doubly Linked List Given a doubly-linked list w ... read more
asked in Nagarro
Q5. Merge k Sorted Linked Lists You are provided with 'K' sorted link ... read more

Interview questions from similar companies

SDE Interview Questions & Answers

Swiggy user image Anonymous

posted on 22 Jun 2024

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

It had 9 uqestions , one problem solving , one SQL , one API and 6 mcq

Round 2 - Assignment 

Easy assignment , if you hav eOOps knowledge you can do it

Interview experience
4
Good
Difficulty level
Moderate
Process Duration
Less than 2 weeks
Result
Not Selected

I applied via Job Fair and was interviewed in Nov 2023. There was 1 interview round.

Round 1 - Technical 

(1 Question)

  • Q1. Arrays,string,oops,dsa

Interview Preparation Tips

Interview preparation tips for other job seekers - Do well study dsa throughly

SDE Interview Questions & Answers

Facebook user image Anonymous

posted on 5 Jun 2015

Interview Questionnaire 

16 Questions

  • Q1. Given a set of 2D points, some integer k, find the k points closest to the origin, (0,0)
  • Ans. 

    Find k closest points to origin from a set of 2D points.

    • Calculate distance of each point from origin using distance formula

    • Sort the points based on distance in ascending order

    • Return first k points from the sorted list

  • Answered by AI
  • Q2. How will you describe iOS manual memory management for a new developer in few words?
  • Ans. 

    iOS manual memory management requires developers to manually allocate and deallocate memory for objects.

    • Developers must manually allocate memory for objects using methods like alloc and init.

    • Developers must also manually deallocate memory for objects using methods like release.

    • Failure to properly manage memory can lead to memory leaks and crashes.

    • ARC (Automatic Reference Counting) was introduced in iOS 5 to automate me...

  • Answered by AI
  • Q3. Write a program to print the powerset. E.g. given this set {1,2,3}, it will print {},{1},{2},{3},{1,2},{1,3}, {2,3}, {1,2,3}
  • Ans. 

    Program to print powerset of a given set

    • Create an empty list to store subsets

    • Loop through all possible binary numbers from 0 to 2^n-1 where n is the length of the set

    • For each binary number, convert it to binary and use the 1's as indices to select elements from the set

    • Add the selected elements to the list of subsets

    • Return the list of subsets

  • Answered by AI
  • Q4. Convert a string of Roman numerals to an integer in O(n) time
  • Ans. 

    Convert Roman numerals to integer in O(n) time

    • Create a dictionary to map Roman numerals to integers

    • Iterate through the string from right to left

    • If the current numeral is less than the previous, subtract it from the total

    • Else, add it to the total

    • Return the total

  • Answered by AI
  • Q5. Given a list of integer numbers, a list of symbols [+,-,*,/] and a target number N, provide an expression which evaluates to N or return False if that is not possible. e.g. let the list of numbers be [1,...
  • Ans. 

    Given a list of numbers and symbols, provide an expression that evaluates to a target number.

    • Use recursion to try all possible combinations of numbers and symbols

    • Check for division by zero and negative numbers

    • Return False if no expression evaluates to the target number

  • Answered by AI
  • Q6. Given an expression (in single variable) like 4x+13(x-(4x+x/3)) = 9, evaluate x The expression is a string and the variable is always x
  • Ans. 

    Solve for x in a given expression with single variable.

    • Simplify the expression by applying the distributive property and combining like terms.

    • Isolate the variable term on one side of the equation and the constant terms on the other side.

    • Solve for x by dividing both sides of the equation by the coefficient of the variable term.

    • Check the solution by substituting the value of x back into the original equation.

    • In this case...

  • Answered by AI
  • Q7. Given a hashmap M which is a mapping of characters to arrays of substitute characters, and an input string S, return an array of all possible mutations of S (where any character in S can be substituted wit...
  • Ans. 

    Given a hashmap M and an input string S, return an array of all possible mutations of S using M's substitutes.

    • Iterate through each character in S and get its substitutes from M

    • Use recursion to generate all possible combinations of substitutes for each character

    • Time complexity: O(n^m) where n is the average number of substitutes per character and m is the length of S

    • Space complexity: O(n^m) due to the number of possible...

  • Answered by AI
  • Q8. Brain storming:How does facebook implement graph search
  • Ans. 

    Facebook implements graph search by indexing user data and using natural language processing.

    • Facebook indexes user data to create a graph of connections and relationships.

    • Natural language processing is used to interpret user queries and return relevant results.

    • Graph search allows users to search for specific information within their network, such as 'friends who like hiking'.

  • Answered by AI
  • Q9. How does facebook chat work
  • Ans. 

    Facebook chat is a real-time messaging service that allows users to communicate with each other through the Facebook website or mobile app.

    • Facebook chat uses XMPP (Extensible Messaging and Presence Protocol) to enable real-time communication between users.

    • Messages are sent and received through Facebook's servers, which act as intermediaries between users.

    • Users can see when their friends are online and available to chat...

  • Answered by AI
  • Q10. How does fb store likes/dislikes ?
  • Ans. 

    Facebook stores likes/dislikes as data points in their database.

    • Likes and dislikes are stored as separate data points.

    • Each like/dislike is associated with a unique ID for the post or comment.

    • The data is stored in Facebook's database and can be accessed through their API.

    • Likes/dislikes can also be used to personalize a user's newsfeed.

    • Facebook also uses likes/dislikes to gather data for targeted advertising.

  • Answered by AI
  • Q11. How do u implement status updates ?
  • Ans. 

    Status updates can be implemented through various methods such as push notifications, real-time updates, and periodic polling.

    • Use push notifications to instantly update users on important changes.

    • Implement real-time updates using websockets or server-sent events for a seamless user experience.

    • Periodically poll the server for updates using AJAX or other similar technologies.

    • Provide a clear and concise interface for user...

  • Answered by AI
  • Q12. How do u implement timeline/newsfeed ?
  • Ans. 

    A timeline/newsfeed can be implemented using a combination of algorithms and data structures.

    • Use a database to store user activity data

    • Implement an algorithm to sort the data by time

    • Use pagination to limit the number of items displayed at once

    • Include options for filtering and searching

    • Consider using caching to improve performance

  • Answered by AI
  • Q13. What exactly happens when you add someone as your friend ?
  • Ans. 

    Adding someone as a friend allows you to connect with them on the platform and see their updates.

    • When you add someone as a friend, they receive a notification and can choose to accept or decline your request.

    • Once they accept your request, you can see their updates and they can see yours.

    • You can also message each other and tag each other in posts.

    • Adding someone as a friend does not give them access to your personal info...

  • Answered by AI
  • Q14. Explain more about hadoop and how it is used ?
  • Ans. 

    Hadoop is a distributed computing framework used for storing and processing large datasets.

    • Hadoop is based on the MapReduce programming model.

    • It allows for parallel processing of large datasets across multiple nodes.

    • Hadoop consists of two main components: HDFS for storage and MapReduce for processing.

    • It is commonly used for big data analytics, machine learning, and data warehousing.

    • Examples of companies using Hadoop in

  • Answered by AI
  • Q15. How do fb messages work ?
  • Ans. 

    FB messages work by allowing users to send and receive text, images, videos, and other media through the Facebook platform.

    • Messages can be sent to individuals or groups of people.

    • Users can also send voice messages and make voice and video calls through the messaging feature.

    • Messages can be archived or deleted, and users can also choose to ignore or block certain senders.

    • Facebook uses end-to-end encryption to protect th...

  • Answered by AI
  • Q16. How does fb mail work ?
  • Ans. 

    FB Mail is a messaging service that allows Facebook users to send and receive messages from other users.

    • FB Mail is integrated into the Facebook platform and can be accessed through the Messenger app or website.

    • Users can send messages to individuals or groups, and can also attach files, photos, and videos.

    • FB Mail also includes features such as message requests, message filtering, and message archiving.

    • Messages can be se...

  • Answered by AI

Interview Preparation Tips

College Name: NA

Skills evaluated in this interview

SDE Interview Questions & Answers

LinkedIn user image Anonymous

posted on 25 May 2015

Interview Preparation Tips

Round: Test
Experience: First there was an online round on hackerrank where they asked 4 simple coding questions about DP, strings and stacks. In this round the selected 3 candidates.

Round: TECHNICAL INTERVIEW
Experience: In first round they asked me 2 coding questions where he asked me to code as close as possible to the actual one.

First question was you are given a array of string followed by two words. You have to find the minimum distance between the two words in the given array of string. For example:

(“the”, “quick”, “brown”, “fox”, “quick”)

distance(“fox”,”the”) == 3

distance(“quick”, “fox”) == 1Second qustion:Given two sorted array of Strings, Implement a merged sorted array of stringA[ ] = {"good", "person" }

B[ ] = { "he", "is" }

return { "good", "he", "is", "person"}

After this round they selected all three.

Round: TECHNICAL INTERVIEW
Experience: Then in the second round they asked a little about tree and told me to code 2 codes.

First one : You are supposed to do a level order traversal of a binary tree(not necessarily complete) and have to print a special character(say ‘$’) after completion of each level.

Second: Given a number print all the combination in which no. can be printed.

for eg.Input:

3

Output:

2 1

1 2

1 1 2After this round they selected 2 candidates including me.

General Tips: Tips for the interview:Just be relaxed interview will be simple you just need be calm and do not make small mistakes like ‘;’. Interviewer’s? main focus will be on end cases, so keep all end cases in mind while coding. Before start anything keep clear what you are going to code. Finally think out loud. Best of luck.
College Name: VIT CHENNAI

SDE Interview Questions & Answers

Amazon user image Anonymous

posted on 25 May 2015

Interview Questionnaire 

7 Questions

  • Q1. Find the second largest element in an array. (-----/)
  • Ans. 

    Find the second largest element in an array.

    • Sort the array and return the second last element

    • Iterate through the array and keep track of the two largest elements

    • Use a priority queue to find the second largest element

  • Answered by AI
  • Q2. Given a sorted array which can have repeated elements, find the occurrence of an element. (Most optimal solution is O(logn) – Using binary search to find start and end occurrence)
  • Ans. 

    Given a sorted array with repeated elements, find the occurrence of a given element using binary search.

    • Use binary search to find the first occurrence of the element

    • Use binary search to find the last occurrence of the element

    • Calculate the occurrence by subtracting the indices of the last and first occurrences and adding 1

  • Answered by AI
  • Q3. Make a data structure and implement an algorithm to print all the files in a directory. (the root directory can have sub-directories too.) I used an n-ary tree and BFS to print files. It can also be done u...
  • Ans. 

    Implement a data structure and algorithm to print all files in a directory, including sub-directories.

    • Use an n-ary tree or stack to represent the directory structure

    • Implement a BFS or DFS algorithm to traverse the directory and print files

    • Handle sub-directories recursively

    • Consider using a queue or stack to keep track of directories to visit

  • Answered by AI
  • Q4. He asked some question about my CV
  • Q5. Print a matrix diagonally. (-----/)
  • Ans. 

    Print a matrix diagonally.

    • Start from the top left corner and print the diagonal elements

    • Move down and right to print the next diagonal

    • Repeat until all diagonals are printed

  • Answered by AI
  • Q6. DFS of binary tree, n-ary tree
  • Ans. 

    DFS is a traversal algorithm used to visit all nodes of a tree or graph. It can be applied to binary as well as n-ary trees.

    • DFS stands for Depth First Search.

    • In DFS, we start from the root node and visit its children recursively until we reach a leaf node.

    • There are two types of DFS: Preorder (root, left, right) and Postorder (left, right, root).

    • DFS can be implemented using recursion or a stack data structure.

    • Example: I...

  • Answered by AI
  • Q7. Then he asked some question from other subjects. OS – Scheduling DBMS – Normalization, Transaction OOPS – Abstraction

Interview Preparation Tips

Round: Test
Experience: They had an online aptitude test on day 1. It was 90 minutes: 20 MCQs + 2 coding questions (choice between C/C++/Java for coding). MCQs were based on DSA, OS, and Math. They were apparently difficult.

Round: Test
Experience: 1. Keypad problem ( -----/ )– Little difficult problem on backtracking.2. Given an array, find the count of impossible triangle ( -----/ )

Round: Test
Experience: Questions involved DSA and strongly based on optimising the code:



1. Given a linked list, reverse K nodes in it eg :- 1->2->3->4->5->NULL , k = 3 3->2->1->5->4 2. Search for an element in an array which has elements who’s values are first increasing and then decreasing. (Use modified binary search)
Duration: 60 minutes
Total Questions: 2

College Name: NA

Skills evaluated in this interview

SDE Interview Questions & Answers

Amazon user image Anonymous

posted on 25 May 2015

Interview Preparation Tips

Round: Telephonic round
Experience: 1. An array is given with element name and their respective pH values. Print the combination of 2 elements which make a neutral compound.

A discussion started and best solution was O(n) time complexity and O(1) space complexity.

Then I got call for F2F interviews and here are those-

Round: Technical Interview
Experience: 1. Print Matrix in spiral form.

2. A store have n customers and any 1 can visit them any time through out the year.Data is stored in a file.Design a data structure to find given person visited on so n so date or not.

Round: Technical Interview
Experience: 1.There are N packages P1, P2…Pn. A package may depend on another or many other for its compilation. Given a matrix of dependency, find a sequence of package compilation.

2.A 2D matrix is given, with each elements representing number of gold coin at that position. I have to travel from (0,0) to last element of matrix collecting maximum no. of coins.I can travel either right of an element or down of it.

3.In Galaxy there are trillions of stars. I am provide distance of every star from earth. Tell me nearest 1Million stars to earth, provided with best time and space complexity.

Round: Technical Interview
Experience: 1. Implement LRU.

2.In Android phones we have 3X3 grid for making a pattern. Given a length, find number of combinations for that length in that grid.

Round: HR Interview
Experience: 1. Project deep discussion.
2. Few given scenarios and how you will tackle.
3. Strengths and weaknesses.
4. Given a file with many statements. Print all the strings with their anagrams through the file.Logic to check anagrams and to store them

Round: Technical Interview
Experience: 1. Behavioral Questions like
>Why you want to leave your organization?
>What is most challenging work you have done till date?
>Why you want to join Amazon?
etc.
2. Which data structure you know?
3.Say I have few words and their meaning, and I want to store them which DS will you use and why.
I started with Hashmap and we kept on discussing about pros and cons.Finally ended up with trie.He asked me to write code for it, for adding new word and for fetching meaning from Trie.The whole process started in 1st week and yesterday got a call from HR for I am invited to be part of Amazon.

College Name: NA

SDE Interview Questions & Answers

Amazon user image Anonymous

posted on 2 Jun 2015

Interview Questionnaire 

2 Questions

  • Q1. Find top 10 selling product given the count of sales of each product
  • Ans. 

    To find the top 10 selling products, sort the products by their sales count in descending order and select the first 10.

    • Sort the products by their sales count in descending order

    • Select the first 10 products from the sorted list

  • Answered by AI
  • Q2. Design a valet parking lot with basic use-case of assigning ticket to customer and retrieving the car later. Three sizes available. Use best fit and nearest distance
  • Ans. 

    Design a valet parking lot with ticket assignment and car retrieval using best fit and nearest distance.

    • Create a parking lot with designated spots for each size of car

    • Assign a ticket to the customer upon entry and record the spot number

    • Retrieve the car by searching for the nearest available spot of the appropriate size

    • Use best fit algorithm to minimize empty spots

    • Implement a system for payment upon exit

  • Answered by AI

Interview Preparation Tips

College Name: NA

Skills evaluated in this interview

SDE Interview Questions & Answers

Amazon user image Anonymous

posted on 4 Jun 2015

Interview Questionnaire 

7 Questions

  • Q1. In a binary tree, a random pointer is given in each node. If this pointer pointing other than any successor of the node then set it as NULL. Otherwise let it remain untouched. Write code
  • Q2. You will be given the number of pairs of parenthesis. Find out the total possible valid unique combinations and there should not be any duplicity. Write code
  • Ans. 

    Find total possible valid unique combinations of given number of pairs of parenthesis without duplicity.

    • Use recursion to generate all possible combinations

    • Check for validity of each combination using a stack

    • Use a set to avoid duplicity

  • Answered by AI
  • Q3. Given an in-order traversal of a special binary tree having property that the node is always greater than its left and right child. Construct the tree and write code
  • Ans. 

    Construct a binary tree from in-order traversal with nodes greater than left and right child.

    • The root node will be the maximum value in the in-order traversal

    • Recursively construct the left and right subtrees using the left and right portions of the in-order traversal

    • Repeat until all nodes are added to the tree

  • Answered by AI
  • Q4. Find top 10 trending words inserted by users in sites like twitter. Only algorithm
  • Ans. 

    An algorithm to find top 10 trending words inserted by users in sites like Twitter.

    • Collect a large dataset of tweets

    • Tokenize the tweets into individual words

    • Remove stop words and punctuation

    • Count the frequency of each word

    • Sort the words by frequency in descending order

    • Select the top 10 words

  • Answered by AI
  • Q5. Write an efficient code to find the first occurrence of 1 in a sorted binary array
  • Ans. 

    Find the first occurrence of 1 in a sorted binary array.

    • Use binary search to find the first occurrence of 1.

    • If the mid element is 1, check if it's the first occurrence or if the element before it is 0.

    • If the mid element is 0, search in the right half of the array.

    • If the mid element is 1 and the element before it is also 1, search in the left half of the array.

  • Answered by AI
  • Q6. Remove duplicated from a string in O(n) without using hash
  • Ans. 

    Remove duplicates from a string in O(n) without using hash

    • Use an array of boolean values to keep track of characters already seen

    • Iterate through the string and mark characters as seen in the array

    • If a character has already been seen, remove it from the string

  • Answered by AI
  • Q7. Ind the first occurrence of 1 in a sorted infinite binary tree
  • Ans. 

    Find the first occurrence of 1 in a sorted infinite binary tree.

    • Use binary search to traverse the tree.

    • If the current node is 1, check if its left child is also 1. If yes, move to the left subtree, else return the current node.

    • If the current node is 0, move to the right subtree.

    • Repeat until the first occurrence of 1 is found or the tree is exhausted.

  • Answered by AI

Interview Preparation Tips

Round: Telephonic
Experience: Q1. For a given number, find the next greatest number which is just greater than previous one and made up of same digits.

Q2. Find immediate ancestor of a given Node

Q3. Clone the linked list having an extra random pointer in nodes which is pointing random node in the list.

Round: HR Interview
Experience: Amazon has many visitors to its site. And it tracks what pages the customers visited, etc and other stuff.Make an efficient data structure for storing 3 days of information of all those customers who have visited site exactly two different days and searched more than 3 unique pages of the site in those 2 days.So whoever visited site exactly two days out of these three days and visited more then 3 unique pages should be in the contact list.

College Name: NA

Skills evaluated in this interview

Uber Interview FAQs

How many rounds are there in Uber SDE interview?
Uber interview process usually has 2-3 rounds. The most common rounds in the Uber interview process are Coding Test, One-on-one Round and Resume Shortlist.
What are the top questions asked in Uber SDE interview?

Some of the top questions asked at the Uber SDE interview -

  1. Design LRU ca...read more
  2. leetcode problem called 01 isl...read more
  3. leetcode problem no of ilsa...read more

Tell us how to improve this page.

Uber SDE Interview Process

based on 2 interviews

Interview experience

4.5
  
Good
View more

SDE Interview Questions from Similar Companies

Amazon SDE Interview Questions
4.1
 • 44 Interviews
Flipkart SDE Interview Questions
4.0
 • 5 Interviews
Meesho SDE Interview Questions
3.7
 • 3 Interviews
Myntra SDE Interview Questions
4.0
 • 3 Interviews
Zepto SDE Interview Questions
3.5
 • 2 Interviews
Paytm SDE Interview Questions
3.3
 • 2 Interviews
Swiggy SDE Interview Questions
3.8
 • 1 Interview
Zomato SDE Interview Questions
3.7
 • 1 Interview
Blinkit SDE Interview Questions
3.7
 • 1 Interview
View all
Uber SDE Salary
based on 21 salaries
₹21 L/yr - ₹89.5 L/yr
156% more than the average SDE Salary in India
View more details

Uber SDE Reviews and Ratings

based on 1 review

5.0/5

Rating in categories

5.0

Skill development

5.0

Work-life balance

5.0

Salary

5.0

Job security

5.0

Company culture

5.0

Promotions

5.0

Work satisfaction

Explore 1 Review and Rating
Driver
583 salaries
unlock blur

₹0.6 L/yr - ₹7 L/yr

CAR Driver
390 salaries
unlock blur

₹0.9 L/yr - ₹7.5 L/yr

Software Engineer
159 salaries
unlock blur

₹19.4 L/yr - ₹84.6 L/yr

Operations Executive
139 salaries
unlock blur

₹1.6 L/yr - ₹4 L/yr

Data Analyst
130 salaries
unlock blur

₹5.6 L/yr - ₹21.7 L/yr

Explore more salaries
Compare Uber with

Amazon

4.1
Compare

Google

4.4
Compare

Ola Cabs

3.4
Compare

Airbnb

3.8
Compare
Did you find this page helpful?
Yes No
write
Share an Interview