Upload Button Icon Add office photos

Uber

Compare button icon Compare button icon Compare

Filter interviews by

Uber Software Developer Intern Interview Questions and Answers

Updated 20 Sep 2024

9 Interview questions

A Software Developer Intern was asked
Q. 

Find Indices for Local Minima and Maxima

Given an integer array arr of size N, your task is to determine all indices of local minima and local maxima within the array. Return these indices in a 2-D list, w...

Ans. 

Find indices of local minima and maxima in an integer array.

  • Iterate through the array and compare each element with its neighbors to find local minima and maxima.

  • Consider corner elements separately by comparing with only one neighbor.

  • Return the indices of local minima and maxima in a 2-D list.

A Software Developer Intern was asked
Q. 

Return Subsets Sum to K Problem Statement

Given an integer array 'ARR' of size 'N' and an integer 'K', return all the subsets of 'ARR' which sum to 'K'.

Explanation:

A subset of an array 'ARR' is a tuple...

Ans. 

Given an array and an integer, return all subsets that sum to the given integer.

  • Use backtracking to generate all possible subsets of the array.

  • Keep track of the current subset and its sum while backtracking.

  • If the sum of the subset equals the target sum, add it to the result.

  • Recursively explore both including and excluding the current element in the subset.

  • Sort the elements in each subset to ensure increasing orde...

Software Developer Intern Interview Questions Asked at Other Companies

Q1. Sum of Maximum and Minimum Elements Problem Statement Given an ar ... read more
asked in Amazon
Q2. Fish Eater Problem Statement In a river where water flows from le ... read more
asked in Apple
Q3. Kevin and his Fruits Problem Statement Kevin has 'N' buckets, eac ... read more
asked in CommVault
Q4. Sliding Maximum Problem Statement Given an array of integers ARR ... read more
Q5. Reverse Words in a String: Problem Statement You are given a stri ... read more
A Software Developer Intern was asked
Q. 

Game of Stones Problem Statement

Two players, 'Ale' and 'Bob', are playing a game with a pile of stones. Your task is to determine the winner if both play optimally.

Rules of the Game:

1. On each turn, a...

Ans. 

Determining the winner of a game where two players take turns to remove stones from a pile based on certain rules.

  • Implement a recursive function to simulate the game where each player makes the optimal move.

  • Check if the current player can take any stones, if not, the other player wins.

  • Return 'Ale' if 'Ale' wins, otherwise return 'Bob'.

A Software Developer Intern was asked
Q. 

Sort By Kth Bit

Given an array or list ARR of N positive integers and an integer K, your task is to rearrange all elements such that those with the K-th bit (considering the rightmost bit as '1st' bit) equ...

Ans. 

Rearrange elements in an array based on the K-th bit being 0 or 1.

  • Iterate through the array and separate elements based on the K-th bit being 0 or 1.

  • Maintain the relative order of elements within each group.

  • Combine the two groups to get the final rearranged array.

  • Time complexity can be optimized to linear time by using bitwise operations.

  • Example: For ARR = {1, 2, 3, 4} and K = 1, output should be {2, 4, 1, 3}.

What people are saying about Uber

View All
a digital marketer
17h
Now UBER, OLA, RAPIDO should start launching boats!
After looking at the condition of Gurgaon roads and traffic due to widespread waterlogging and heavy rainfall............... i feel Uber, Ola should start thinking about a new launch, BOAT ! At least we can reach the office on time! What do you think, guys?
FeedCard Image
Got a question about Uber?
Ask anonymously on communities.
A Software Developer Intern was asked
Q. 

Rotting Oranges Problem Statement

You are given a grid containing oranges where each cell of the grid can contain one of the three integer values:

  • 0 - representing an empty cell
  • 1 - representing a fres...
Ans. 

Find the minimum time required to rot all fresh oranges in a grid.

  • Use Breadth First Search (BFS) to simulate the rotting process of oranges.

  • Track the time taken to rot all oranges and return -1 if any fresh oranges remain.

  • Handle edge cases such as empty grid, no fresh oranges, or no rotten oranges.

  • Update the status of adjacent fresh oranges to rotten oranges in each iteration.

A Software Developer Intern was asked
Q. 

XOR Query Problem Statement

Assume you initially have an empty array called ARR. You are required to return the updated array after executing Q number of queries on this array.

There are two types of quer...

Ans. 

Implement a function to update an array based on XOR queries.

  • Create an empty array to store the elements.

  • Iterate through each query and update the array accordingly.

  • Use bitwise XOR operation to update the elements.

  • Ensure to handle both types of queries - insert and XOR operation.

A Software Developer Intern was asked
Q. 

Snake and Ladder Problem Statement

Given a 'Snake and Ladder' board with N rows and N columns, where positions are numbered from 1 to (N*N) starting from the bottom left, alternating direction each row, fi...

Ans. 

Find the minimum number of dice throws required to reach the last cell on a 'Snake and Ladder' board.

  • Use Breadth First Search (BFS) algorithm to find the shortest path on the board.

  • Create a mapping of each cell to its corresponding row and column on the board.

  • Consider the presence of snakes and ladders while calculating the next possible moves.

  • Handle the case where the last cell is unreachable by returning -1.

  • Opti...

Are these interview questions helpful?
A Software Developer Intern was asked
Q. 

Total Unique Paths Problem Statement

You are located at point ‘A’, the top-left corner of an M x N matrix, and your target is point ‘B’, the bottom-right corner of the same matrix. Your task is to calculat...

Ans. 

Calculate total unique paths from top-left to bottom-right corner of a matrix by moving only right or down.

  • Use dynamic programming to solve this problem efficiently.

  • Create a 2D array to store the number of unique paths for each cell.

  • Initialize the first row and first column with 1 as there is only one way to reach them.

  • For each cell, the number of unique paths is the sum of paths from the cell above and the cell t...

A Software Developer Intern was asked
Q. 

Minimum Operations to Connect a Graph

You are given a graph with 'N' vertices labeled from 1 to 'N' and 'M' edges. In one operation, you can shift an edge from being between two directly connected vertices...

Ans. 

Determine the minimum number of operations to connect a graph by shifting edges between disconnected vertices.

  • Use a disjoint set union (DSU) data structure to keep track of connected components.

  • Count the number of connected components in the graph.

  • The minimum number of operations required is equal to the number of connected components minus 1.

Uber Software Developer Intern Interview Experiences

3 interviews found

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

I applied via Campus Placement and was interviewed in Mar 2024. There were 2 interview rounds.

Round 1 - Coding Test 

Graphs ,arrays , Hashmaps and Heaps

Round 2 - One-on-one 

(2 Questions)

  • Q1. Graphs related dfs
  • Q2. Changes on graph structure
  • Ans. 

    Changes on graph structure involve adding, removing, or modifying nodes and edges.

    • Adding a new node to the graph

    • Removing an existing node from the graph

    • Modifying the weight of an edge in the graph

  • Answered by AI

Skills evaluated in this interview

I appeared for an interview in Dec 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 90 minutes
Round difficulty - Easy

This round had 2 coding problems and we had to code it on hackerearth only.
The use of Outside IDE was forbidden.
The timing of test was 12:00 PM to 1:30 PM.

  • Q1. 

    Meeting Rescheduling Challenge

    Ninja is tasked with organizing a meeting in an office that starts at time ‘0’ and ends at time ‘LAST’. There are ‘N’ presentations scheduled with given start and end times....

  • Ans. 

    Reschedule at most K presentations to maximize gap without overlap.

    • Iterate through presentations and calculate the gaps between them

    • Sort presentations by end time and reschedule K presentations to maximize gap

    • Return the longest gap achieved

  • Answered by AI
  • Q2. 

    Total Unique Paths Problem Statement

    You are located at point ‘A’, the top-left corner of an M x N matrix, and your target is point ‘B’, the bottom-right corner of the same matrix. Your task is to calcula...

  • Ans. 

    Calculate total unique paths from top-left to bottom-right corner of a matrix by moving only right or down.

    • Use dynamic programming to solve this problem efficiently.

    • Create a 2D array to store the number of unique paths for each cell.

    • Initialize the first row and first column with 1 as there is only one way to reach them.

    • For each cell, the number of unique paths is the sum of paths from the cell above and the cell to the...

  • Answered by AI
Round 2 - Coding Test 

(2 Questions)

Round duration - 90 minutes
Round difficulty - Medium

This round was coding round with discussion .
The interviewer tried to trick the questions and wanted to test how we respond if something is asked out of preparation.
The code we ran on Google Docs was checked on Online IDE if it ran for sample inputs.
Timing : 12:00 PM to 1:30 PM

  • Q1. 

    Minimum Operations to Connect a Graph

    You are given a graph with 'N' vertices labeled from 1 to 'N' and 'M' edges. In one operation, you can shift an edge from being between two directly connected vertice...

  • Ans. 

    Determine the minimum number of operations to connect a graph by shifting edges between disconnected vertices.

    • Use a disjoint set union (DSU) data structure to keep track of connected components.

    • Count the number of connected components in the graph.

    • The minimum number of operations required is equal to the number of connected components minus 1.

  • Answered by AI
  • Q2. 

    Snake and Ladder Problem Statement

    Given a 'Snake and Ladder' board with N rows and N columns, where positions are numbered from 1 to (N*N) starting from the bottom left, alternating direction each row, f...

  • Ans. 

    Find the minimum number of dice throws required to reach the last cell on a 'Snake and Ladder' board.

    • Use Breadth First Search (BFS) algorithm to find the shortest path on the board.

    • Create a mapping of each cell to its corresponding row and column on the board.

    • Consider the presence of snakes and ladders while calculating the next possible moves.

    • Handle the case where the last cell is unreachable by returning -1.

    • Optimize ...

  • Answered by AI
Round 3 - Coding Test 

(1 Question)

Round duration - 75 minutes
Round difficulty - Hard

This was a problem solving round and lasted for 75 minutes. The interviewer gave me a very complicated question.
The round was held on Google Meet and I was supposed to tell him the approach and write code on shared Google Docs.

  • Q1. 

    XOR Query Problem Statement

    Assume you initially have an empty array called ARR. You are required to return the updated array after executing Q number of queries on this array.

    There are two types of que...

  • Ans. 

    Implement a function to update an array based on XOR queries.

    • Create an empty array to store the elements.

    • Iterate through each query and update the array accordingly.

    • Use bitwise XOR operation to update the elements.

    • Ensure to handle both types of queries - insert and XOR operation.

  • Answered by AI

Interview Preparation Tips

Professional and academic backgroundI applied for the job as SDE - Intern in BangaloreEligibility criteriaAbove 6 CGPAUber interview preparation:Topics to prepare for the interview - Dynamic Programming, OOPs, Computer Network, Operating System, Game TheoryTime required to prepare for the interview - 3 monthsInterview preparation tips for other job seekers

Tip 1 : prepare all Topics from Coding Ninjas of Course Competitive Programming. Also I practiced atleast one question everyday from sites like Leetcode,Interviewbit and also took part in Codeforces Contest.
Tip 2 : Though Data Structure is the base for any tech interview, one must know some other subjects as well like Operating System, Networking, and Database Management System for which I took help from Coding Ninja’s notes and from GeeksforGeeks.

Application resume tips for other job seekers

Tip 1 : Keep your resume up to date and mention 2-3 good level projects which will give a good impression to the interviewer .
Tip 2 : Don't put false things on the resume.

Final outcome of the interviewSelected

Skills evaluated in this interview

I appeared for an interview before Sep 2020.

Round 1 - Coding Test 

(2 Questions)

Round duration - 90 minutes
Round difficulty - Medium

There were a total of three questions of 100, 200, and 300 points respectively. Partial points were given if partial tests got passed for any problem. The Codesignal environment was similar to Hackerrank, so not much different. I think the test was held in the afternoon time.

  • Q1. 

    Game of Stones Problem Statement

    Two players, 'Ale' and 'Bob', are playing a game with a pile of stones. Your task is to determine the winner if both play optimally.

    Rules of the Game:

    1. On each turn, ...

  • Ans. 

    Determining the winner of a game where two players take turns to remove stones from a pile based on certain rules.

    • Implement a recursive function to simulate the game where each player makes the optimal move.

    • Check if the current player can take any stones, if not, the other player wins.

    • Return 'Ale' if 'Ale' wins, otherwise return 'Bob'.

  • Answered by AI
  • Q2. 

    Return Subsets Sum to K Problem Statement

    Given an integer array 'ARR' of size 'N' and an integer 'K', return all the subsets of 'ARR' which sum to 'K'.

    Explanation:

    A subset of an array 'ARR' is a tupl...

  • Ans. 

    Given an array and an integer, return all subsets that sum to the given integer.

    • Use backtracking to generate all possible subsets of the array.

    • Keep track of the current subset and its sum while backtracking.

    • If the sum of the subset equals the target sum, add it to the result.

    • Recursively explore both including and excluding the current element in the subset.

    • Sort the elements in each subset to ensure increasing order of ...

  • Answered by AI
Round 2 - Video Call 

(2 Questions)

Round duration - 60 minutes
Round difficulty - Medium

This round was a video call round held on Zoom and the Codesignal platform was to be used for coding the problems. The round started with the interviewer giving a small introduction about him and then asking me to introduce myself.

  • Q1. 

    Rotting Oranges Problem Statement

    You are given a grid containing oranges where each cell of the grid can contain one of the three integer values:

    • 0 - representing an empty cell
    • 1 - representing a fre...
  • Ans. 

    Find the minimum time required to rot all fresh oranges in a grid.

    • Use Breadth First Search (BFS) to simulate the rotting process of oranges.

    • Track the time taken to rot all oranges and return -1 if any fresh oranges remain.

    • Handle edge cases such as empty grid, no fresh oranges, or no rotten oranges.

    • Update the status of adjacent fresh oranges to rotten oranges in each iteration.

  • Answered by AI
  • Q2. 

    Find Indices for Local Minima and Maxima

    Given an integer array arr of size N, your task is to determine all indices of local minima and local maxima within the array. Return these indices in a 2-D list, ...

  • Ans. 

    Find indices of local minima and maxima in an integer array.

    • Iterate through the array and compare each element with its neighbors to find local minima and maxima.

    • Consider corner elements separately by comparing with only one neighbor.

    • Return the indices of local minima and maxima in a 2-D list.

  • Answered by AI
Round 3 - Video Call 

(1 Question)

Round duration - 60 minutes
Round difficulty - Medium

The setup was exactly similar to the first interview round. The interviewer was very friendly. My advice will be to see the interviewer as a team mate and think you have to solve the question together with him. Don't panic and start speaking out what observations you can make about the problem.

  • Q1. 

    Sort By Kth Bit

    Given an array or list ARR of N positive integers and an integer K, your task is to rearrange all elements such that those with the K-th bit (considering the rightmost bit as '1st' bit) eq...

  • Ans. 

    Rearrange elements in an array based on the K-th bit being 0 or 1.

    • Iterate through the array and separate elements based on the K-th bit being 0 or 1.

    • Maintain the relative order of elements within each group.

    • Combine the two groups to get the final rearranged array.

    • Time complexity can be optimized to linear time by using bitwise operations.

    • Example: For ARR = {1, 2, 3, 4} and K = 1, output should be {2, 4, 1, 3}.

  • Answered by AI
Round 4 - Video Call 

Round duration - 60 minutes
Round difficulty - Medium

It was already night time till this interview started because all the three interview rounds were held on the same day. This was not a DS+Algorithms round. He first asked me to introduce myself. So I started by telling what all I have done in my college up till now and then I told him about my internship experience at myKaarma which just ended few days back. There was around 10-15 minutes discussion on what I was working on in my intern project.

Interview Preparation Tips

Professional and academic backgroundI completed Computer Science Engineering from Indian Institute of Technology (BHU) Varanasi. I applied for the job as SDE - Intern in BangaloreEligibility criteria8 CGPAUber interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, Operating Systems, OOP, some basics of DBMS but I don't feel it was much required for an intern role interviewTime required to prepare for the interview - 2-3 monthsInterview preparation tips for other job seekers

Tip 1 : Try to learn DS+Algorithms from the basics in the starting phase of your preparation. Though, in the later stages of the preparation, some cramming can be employed for the problems generally asked in the interviews (but that too with proper understanding)
Tip 2 : Don't forget to prepare topics like OS and OOP. Although I was not asked much about these topics but my friends were asked some questions from these topics. These topics can be prepared in 2-3 days from YouTube itself.
Tip 3 : For an intern role interview, 2-3 projects including the college projects should be enough. You should be prepared to explain your project answer the basic questions like the approach which you followed, the problems you faced during the project, etc. 
Tip 4 : If possible you can have a prior intern experience as well, but one thing for sure, preparing DS+Algorithms is much more important than this.

Application resume tips for other job seekers

Tip 1 : Writing things which you don't know about properly won't give you much benefit. Rather, they can get you into problem if asked about them.
Tip 2 : Writing much about the things like extra curricular activities in the resume for software roles don't give you much benefit in my opinion. Though I wrote 2-3 PORs which had.
Tip 3 : Trying to make your resume longer unnecessarily won't give you any benefit.

Final outcome of the interviewSelected

Skills evaluated in this interview

Interview questions from similar companies

I appeared for an interview before Dec 2015.

Interview Questionnaire 

2 Questions

  • Q1. 1 question from basic data structures and algorithms The question was similar to the one in the given link- -----/
  • Q2. Why do you want to join the company?
  • Ans. 

    I am excited to join the company because of its reputation for innovation and commitment to employee growth.

    • I am impressed by the company's track record of developing cutting-edge software solutions.

    • I appreciate the company's focus on fostering a culture of learning and development.

    • I am excited about the opportunity to work with a talented team of developers and contribute to the company's success.

    • I believe that the co...

  • Answered by AI

Interview Preparation Tips

Round: Resume Shortlist
Experience: Resumes were shortlisted with a short aptitude round where we are asked basic questions about databases, basic programming(C and C ++ questions)

Round: Technical Interview
Experience: The questions were asked were simple - related to arrays and data structures. Some questions were asked regarding my resume and projects.
Tips: Be thorough with geeksForGeeks, and your projects.

Round: HR Interview
Experience: I told him how I found the story of the founder of Infoedge very inspiring.
Tips: This round should be more simpler , be prepared with why you want to join the company and general HR questions

Skills: Basic C/C++, Programming Skills In Any Language Like C
College Name: IIIT Allahabad

What people are saying about Uber

View All
a digital marketer
17h
Now UBER, OLA, RAPIDO should start launching boats!
After looking at the condition of Gurgaon roads and traffic due to widespread waterlogging and heavy rainfall............... i feel Uber, Ola should start thinking about a new launch, BOAT ! At least we can reach the office on time! What do you think, guys?
FeedCard Image
Got a question about Uber?
Ask anonymously on communities.

Interview Preparation Tips

Round: Technical Interview
Experience: Ques will be based on arrays( duplicate element, missing element in 1 to n array), link list(reverse, remove loop, middle node etc), Hashing, sql join, normalisation, indexing in sql, singlton pattern and sorting and searching.
Tips: Focus will remain on algorithms. Whatever program they will ask to write, they will also ask to optimize the solution.

Skill Tips: Puzzle on mislabled jar, odd weight ball. As I had exp in Java, so some more que on Java, java script and web technology. All you need in interview is to be confident and show your interest in web domain.
Skills: Java, Data structure, Algorithm
College Name: NA

Interview Preparation Tips

Round: Test
Experience: First round was a simple round which involved 10 multiple choice questions and 3 coding questions on hackerrank platform.

Round: Technical Interview
Experience: Mainly on topics like networks, data structures and algorithms, operating systems. The interviewers looked for people who have had prior experience in web development and asked questions regarding web development in depth too.
Tips: I recommend everyone to read the book titled, 'Cracking the Coding Interview' as it was helpful in my approach to an interview.

General Tips: The one major thing that would give you the edge in joining Myntra would definitely be exposure to web development. Since it is not a part of the curriculum , it's all the more important for you to familiarize yourself with web development. In fact, a few projects in the same field would put you in a very advantageous position to get the job.
Skill Tips: 1. Start your placement preparations well ahead, no point regretting later.
2. Keep a concise resume. Do not take your resume to several pages.
3. Do not neglect aptitude preparation. Many people do this mistake and end up not clearing the first round for several companies.
4. Be thorough with your basics across all subjects. (Do not neglect any subject, even they you may like a few and dislike the others.)
5. Keep in mind, the interviewers are really friendly and try to make sure that you're not nervous during the interview. All they want to do is to test you. Be confident and give it your best shot.
Skills:
College Name: NIT Surathkal

Interview Questionnaire 

10 Questions

  • Q1. What do you do when your schedule is interrupted? How you handle it?
  • Ans. 

    I prioritize tasks, communicate effectively, and adapt my plans to manage interruptions while maintaining productivity.

    • Assess the interruption: Determine its urgency and importance. For example, if a team member needs immediate help, I prioritize that.

    • Reorganize my tasks: I create a new plan that accommodates the interruption while ensuring critical deadlines are met.

    • Communicate with stakeholders: I inform my team or m...

  • Answered by AI
  • Q2. PreOrder traversal without recursion?
  • Ans. 

    PreOrder traversal without recursion is done using a stack to simulate the function call stack.

    • Create an empty stack and push the root node onto it.

    • While the stack is not empty, pop a node from the stack and process it.

    • Push the right child of the popped node onto the stack if it exists.

    • Push the left child of the popped node onto the stack if it exists.

  • Answered by AI
  • Q3. Build a bst out of the unsorted array by looping over the array and inserting each element to the tree?
  • Ans. 

    Yes

    • Create an empty binary search tree (BST)

    • Loop over the unsorted array

    • For each element, insert it into the BST using the appropriate insertion logic

    • Repeat until all elements are inserted

    • The resulting BST will be built from the unsorted array

  • Answered by AI
  • Q4. Find 2 elements in array whose sum is equal to given number?
  • Ans. 

    The question asks to find two elements in an array whose sum is equal to a given number.

    • Iterate through the array and for each element, check if the difference between the given number and the current element exists in the array.

    • Use a hash set to store the elements as you iterate through the array for efficient lookup.

    • Return the pair of elements if found, otherwise return a message indicating no such pair exists.

  • Answered by AI
  • Q5. How many types of trigger?
  • Ans. 

    There are two types of triggers: DML triggers and DDL triggers.

    • DML triggers are fired in response to DML (Data Manipulation Language) statements like INSERT, UPDATE, DELETE.

    • DDL triggers are fired in response to DDL (Data Definition Language) statements like CREATE, ALTER, DROP.

    • Examples: A DML trigger can be used to log changes made to a table, while a DDL trigger can be used to enforce certain rules when a table is alt...

  • Answered by AI
  • Q6. Can trigger be used with select statement?
  • Ans. 

    Yes, triggers can be used with select statements in SQL.

    • Triggers are database objects that are automatically executed in response to certain events, such as insert, update, or delete operations.

    • While triggers are commonly used with insert, update, and delete statements, they can also be used with select statements.

    • Using triggers with select statements allows you to perform additional actions or validations before or af...

  • Answered by AI
  • Q7. Indexing in mysql? How many types of indexing in mysql?
  • Ans. 

    Indexing in MySQL improves query performance. There are several types of indexing in MySQL.

    • Indexes are used to quickly locate data without scanning the entire table.

    • Types of indexing in MySQL include B-tree, hash, full-text, and spatial indexes.

    • B-tree indexes are the most common and suitable for most use cases.

    • Hash indexes are used for exact match lookups.

    • Full-text indexes are used for searching text-based data efficie...

  • Answered by AI
  • Q8. Engines in mysql?
  • Ans. 

    Engines in MySQL are the underlying software components that handle storage, indexing, and querying of data.

    • MySQL supports multiple storage engines, each with its own strengths and features.

    • Some commonly used engines in MySQL are InnoDB, MyISAM, and Memory.

    • InnoDB is the default engine in MySQL and provides support for transactions and foreign keys.

    • MyISAM is known for its simplicity and speed but lacks transaction suppo...

  • Answered by AI
  • Q9. Singlton pattern?
  • Ans. 

    The Singleton pattern ensures a class has only one instance and provides a global point of access to it.

    • Restricts instantiation of a class to a single object.

    • Useful for managing shared resources, like database connections.

    • Implemented using private constructors and static methods.

    • Example in Java: public class Singleton { private static Singleton instance; private Singleton() {} public static Singleton getInstance() { if...

  • Answered by AI
  • Q10. Can a constructor be private?
  • Ans. 

    Yes, a constructor can be private.

    • A private constructor can only be accessed within the class itself.

    • It is often used in singleton design pattern to restrict object creation.

    • Private constructors are also useful for utility classes that only contain static methods.

  • Answered by AI

Interview Preparation Tips

Skills: Algorithm, Data structure
College Name: na

Skills evaluated in this interview

Are these interview questions helpful?

I appeared for an interview before Dec 2020.

Round 1 - Coding Test 

(1 Question)

Round duration - 90 minutes
Round difficulty - Easy

Myntra had conducted a coding test on campus before the start of the placement season with 2 questions, one on stack and other on DP.
Tips : For the test, the DP question asked was pretty standard, on Longest Common Subsequence. The question on stacks, I don't remember what it was but it was also pretty straight forward. For the test, I would recommend to solve problem from GFG. If they do come to resume shortlisting, they are looking for people who have done good projects and internships.

  • Q1. 

    Longest Common Subsequence Problem Statement

    Given two strings STR1 and STR2, determine the length of their longest common subsequence.

    A subsequence is a sequence that can be derived from another sequen...

  • Ans. 

    The task is to find the length of the longest common subsequence between two given strings.

    • Implement a function to find the longest common subsequence between two strings.

    • Use dynamic programming to solve this problem efficiently.

    • Iterate through the strings and build a matrix to store the lengths of common subsequences.

    • Return the length of the longest common subsequence found.

  • Answered by AI
Round 2 - Face to Face 

(1 Question)

Round duration - 60 minutes
Round difficulty - Easy

The interview started off with questions on my general interest in Software Development. The first round had two coding questions, I was supposed to write the code on paper. 
For the questions, they asked me to code the solution first. And then gave a specific input and asked me to demonstrate step by step in my code, how it would lead to the correct answer.
Tips: It's ok if you can't code a general solution, if you can write a code which works for the particular input they have given then also it's ok with them. But be thorough with Data structures.

  • Q1. 

    Add Two Numbers as Linked Lists

    You are given two singly linked lists, where each list represents a positive number without any leading zeros.

    Your task is to add these two numbers and return the sum as ...

  • Ans. 

    Add two numbers represented as linked lists and return the sum as a linked list.

    • Traverse both linked lists simultaneously while keeping track of carry from previous sum

    • Create a new linked list to store the sum, updating the value and carry as needed

    • Handle cases where one linked list is longer than the other by adding remaining digits with carry

  • Answered by AI
Round 3 - Face to Face 

(3 Questions)

Round duration - 60 minutes
Round difficulty - Medium

I wasn't asked to write any code in this interview. They asked me some questions on Machine Learning, because of my projects in them. Then they asked me if I knew graph algorithms. Since I knew BFS and DFS, I told them. They asked the difference between the two. Then they asked me if I knew how to find the shortest distance between two points in a graph. I didn't know Dijkstra's properly but I knew it worked on the greedy approach so was able to tell that. Then they asked me how would I find the second shortest path. I tried to answer it with the same greedy approach, but couldn't arrive at the complete solution.
Tips: They ask a tough theoretical question. It's ok if you don't know the answer, they only look for your approach.

  • Q1. 

    BFS Traversal in a Graph

    Given an undirected and disconnected graph G(V, E) where V vertices are numbered from 0 to V-1, and E represents edges, your task is to output the BFS traversal starting from the ...

  • Ans. 

    BFS traversal in a disconnected graph starting from vertex 0.

    • Use a queue to keep track of nodes to visit next in BFS traversal

    • Start traversal from vertex 0 and explore its neighbors first

    • Continue exploring neighbors level by level until all nodes are visited

    • Ensure to print connected nodes in numerical sort order

  • Answered by AI
  • Q2. 

    DFS Traversal Problem Statement

    Given an undirected and disconnected graph G(V, E), where V is the number of vertices and E is the number of edges, the connections between vertices are provided in the 'GR...

  • Ans. 

    DFS traversal to find connected components in an undirected and disconnected graph.

    • Perform DFS traversal on each vertex to find connected components

    • Maintain a visited array to keep track of visited vertices

    • Print the vertices of each connected component in ascending order

  • Answered by AI
  • Q3. 

    Dijkstra's Shortest Path Problem

    Given an undirected graph with ‘V’ vertices (labeled 0, 1, ... , V-1) and ‘E’ edges, where each edge has a weight representing the distance between two connected nodes (X,...

  • Ans. 

    Dijkstra's algorithm is used to find the shortest path from a source node to all other nodes in a graph with weighted edges.

    • Implement Dijkstra's algorithm to find the shortest path distances from the source node to all other nodes in the graph.

    • Use a priority queue to efficiently select the next node with the shortest distance.

    • Update the distances of neighboring nodes based on the current node's distance and edge weight...

  • Answered by AI

Interview Preparation Tips

Eligibility criteriaAbove 7 CGPA, Eligible branches : Computer Science & Engineering, Mathematics & Computing, Electrical Engineering and Electronics & Communication Engineering.Myntra interview preparation:Topics to prepare for the interview - Data Structures, Algorithms, System Design, Aptitude, OOPSTime required to prepare for the interview - 6 monthsInterview preparation tips for other job seekers

Tip 1 : Be thorough with Data Structures and Algorithms and also with your resume.
Tip 2 : Must do Previously asked Interview as well as Online Test Questions.
Tip 3 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 4 : Do at-least 2 good projects and you must know every bit of them.

Application resume tips for other job seekers

Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.

Final outcome of the interviewSelected

Skills evaluated in this interview

Software Developer Interview Questions & Answers

Myntra user image Thommandru Vishnu

posted on 10 Mar 2015

Interview Questionnaire 

9 Questions

  • Q1. All the leaf nodes of tree are doubly linked,print only the leaf nodes of a tree
  • Ans. 

    Print only the leaf nodes of a doubly linked tree.

    • Traverse the tree and check if a node has no children and both left and right pointers are null.

    • If yes, then it is a leaf node and print it.

    • If no, then continue traversing the tree.

    • Use recursion to traverse the tree in a depth-first manner.

  • Answered by AI
  • Q2. LRU page Replacement Algorithm for large data
  • Ans. 

    LRU page replacement algorithm is used to replace the least recently used page in memory with a new page.

    • LRU stands for Least Recently Used

    • It is a cache eviction algorithm

    • It is used to manage memory in operating systems

    • It works by keeping track of the pages that are used recently and the ones that are not

    • When a new page is to be loaded into memory, the algorithm checks which page has not been used for the longest time ...

  • Answered by AI
  • Q3. Given a linked list with 2 parameters m,n. Now start reversing the m nodes and leave n nodes and continue it till u reach the end
  • Ans. 

    Reverse m nodes and leave n nodes in a linked list till the end.

    • Traverse the linked list till m nodes and reverse them

    • Traverse n nodes and continue reversing m nodes

    • Repeat the above step till the end of the linked list

    • Handle edge cases like m or n being greater than the length of the linked list

  • Answered by AI
  • Q4. Inorder Traversal of a tree
  • Ans. 

    Inorder traversal is a way of visiting all nodes in a binary tree by visiting the left subtree, then the root, and then the right subtree.

    • Start at the root node

    • Traverse the left subtree recursively

    • Visit the root node

    • Traverse the right subtree recursively

    • Repeat until all nodes have been visited

  • Answered by AI
  • Q5. Inorder Travesal of a tree without recursion(write the code)
  • Ans. 

    Inorder traversal of a tree without recursion

    • Create an empty stack and initialize current node as root

    • Push the current node to stack and set current = current.left until current is NULL

    • If current is NULL and stack is not empty, pop the top item from stack, print it and set current = popped_item.right

    • Repeat step 2 and 3 until stack is empty

  • Answered by AI
  • Q6. Given an array of numbers in which duplicates are there and one triplicate is there. find that number
  • Ans. 

    Find the triplicate number in an array of duplicates.

    • Iterate through the array and keep track of the frequency of each number.

    • Return the number that appears three times.

    • If no number appears three times, return null.

  • Answered by AI
  • Q7. Explain all the serach algorithm you know with space and Time complexities
  • Ans. 

    Explanation of search algorithms with their space and time complexities.

    • Linear Search - O(n) time complexity, O(1) space complexity

    • Binary Search - O(log n) time complexity, O(1) space complexity

    • Jump Search - O(√n) time complexity, O(1) space complexity

    • Interpolation Search - O(log log n) time complexity, O(1) space complexity

    • Exponential Search - O(log n) time complexity, O(1) space complexity

    • Fibonacci Search - O(log n) ...

  • Answered by AI
  • Q8. Given a situation and asks you which search algorithm suits the best in that situation
  • Ans. 

    Choosing the right search algorithm depends on data structure, size, and specific requirements like speed or memory usage.

    • Binary Search: Efficient for sorted arrays, O(log n) time complexity. Example: Finding a number in a sorted list.

    • Linear Search: Simple and works on unsorted arrays, O(n) time complexity. Example: Searching for a name in an unsorted list.

    • Depth-First Search (DFS): Suitable for tree/graph traversal, ex...

  • Answered by AI
  • Q9. Given an array of length n and in which numbers from 1-n will be there and each number can repeat any number of times find out which repeated more number of times
  • Ans. 

    Find the most repeated number in an array of length n with numbers 1-n.

    • Create a dictionary to store the count of each number in the array

    • Iterate through the array and update the count in the dictionary

    • Find the key with the highest count in the dictionary

  • Answered by AI

Interview Preparation Tips

Round: Resume Shortlist
Experience: Basically, it's not resume shortlist, it's a 9 pointer shortlist

Round: Test
Experience: The Entire Test is held in HackerRank Platform. it has
2 coding questions (one easy and one medium)
2 output questions(medium)
2 Aptitude(easy)
1 general Computer science(medium)
it took me 30 min for each coding questions.I was not known that general question is related to bash commands.
Tips: Practice the Warmup questions in Hacker Rank.
Do some Basic aptitude questions.
Thorough with the basic c and c++ concepts
Duration: 120 minutes
Total Questions: 7

Round: Technical Interview
Experience: It's completely around the data structures. The questions are a bit tricky but once u think without any tension u can get through easily. The interviewer is helpful and gives u few hints if u catch them at the right point of time u got it.There are 2 more questions which I haven't mentioned.
Tips: got through Data Structures and Algorithms Made Easy by Narasimha Karumanchi. It's a best book for the interviews.

Round: Technical Interview
Experience: The interviewer asked to put everything on the blackboard and write down the code of each and everything.
Tips: Go to the website -----/ and study all the interview questions and modules

Round: HR Interview
Experience: It's Technical+ HR interview all the technical questions went around resume. it went around 45 minutes they are very particular about what you wrote in the resume.HR questions are general like
whats your future plans
where will u see yourself in the office after 5 years?
Tips: please make sure that whatever you write in resume should be known to you very well.Don't write false things about yourself.And make sure you know completely about the projects you are going to write in resume(atleast the part you worked)

General Tips: Be sure of what you are saying. Don't be tensed and answer to your best.
Skills: Programming, Data Structures
College Name: VIT VELLORE

Skills evaluated in this interview

Interview Questionnaire 

10 Questions

  • Q1. Change Binary tree so that parent node is the sum of root nodes
  • Ans. 

    Change binary tree to make parent node the sum of root nodes

    • Traverse the tree in post-order

    • For each node, update its value to the sum of its children

    • Return the updated root node

  • Answered by AI
  • Q2. Reverse a linkedlist ?
  • Ans. 

    Reverse a linkedlist by changing the direction of pointers.

    • Iterate through the linkedlist and change the direction of pointers.

    • Keep track of previous, current and next nodes.

    • Set the next pointer of current node to previous node.

    • Move to next node and repeat until end of list is reached.

  • Answered by AI
  • Q3. Given an array of +ve and -ve numbers , have to rearrange them ( like +ve numbers to left and -ve numbers to right of the array)
  • Ans. 

    Rearrange an array of positive and negative numbers with positive numbers on the left and negative numbers on the right.

    • Create two empty arrays, one for positive numbers and one for negative numbers

    • Loop through the original array and add positive numbers to the positive array and negative numbers to the negative array

    • Concatenate the positive and negative arrays to create the rearranged array

  • Answered by AI
  • Q4. Singleton pattern, observer pattern?
  • Q5. String pool and how garbage collection functionality works?
  • Ans. 

    String pool is a cache of string literals in memory. Garbage collection frees up memory by removing unused objects.

    • String pool is a cache of string literals in memory

    • Strings are immutable and can be shared among multiple objects

    • Garbage collection removes unused objects to free up memory

    • String objects that are no longer referenced are eligible for garbage collection

  • Answered by AI
  • Q6. HashMap , how can you synchronize ?
  • Ans. 

    Synchronizing a HashMap ensures thread safety when multiple threads access it concurrently.

    • Use Collections.synchronizedMap(): Wrap the HashMap with this method to create a synchronized version.

    • Example: Map<String, String> syncMap = Collections.synchronizedMap(new HashMap<>());

    • Use ConcurrentHashMap: This is a thread-safe alternative to HashMap that allows concurrent access.

    • Example: ConcurrentHashMap<Strin...

  • Answered by AI
  • Q7. Process vs Thread differences and synchronization,deadlock examples?
  • Ans. 

    Process vs Thread differences and synchronization, deadlock examples

    • Process is an instance of a program while thread is a subset of a process

    • Processes are independent while threads share the same memory space

    • Synchronization is used to coordinate access to shared resources

    • Deadlock occurs when two or more threads are blocked waiting for each other to release resources

    • Examples of synchronization include mutex, semaphore, ...

  • Answered by AI
  • Q8. Database: Design with one-one mapping, one-many mapping…some basic questions, I don’t remember all
  • Q9. Design a website where after user request. A bunch of processes need to be executed and then a mail is sent to user with the result. Take care of scalability etc?
  • Ans. 

    Design a scalable website to process user requests and send email results asynchronously.

    • Use a microservices architecture to handle different processes independently.

    • Implement a message queue (e.g., RabbitMQ, Kafka) to manage requests and responses.

    • Utilize cloud services (e.g., AWS Lambda) for scalable processing of tasks.

    • Send emails using a reliable service (e.g., SendGrid, Amazon SES) to ensure delivery.

    • Implement loa...

  • Answered by AI
  • Q10. CTO round

Interview Preparation Tips

Round: HR Interview
Experience: This was CTO round, if you make this round…you are doing pretty good. 
He asked a lot on what I worked on and asked questions relevant to that. Process thread, stacks heaps. A minor system design on component in their system. How they are shared between and trade-off. We discussed about scalability and challenge.

General Tips: Process:5 technical ( 3 rounds+ SVP round + CTO round ) + 1 HR
I got almost the same package that I am currently getting (Myntra gave stock options&#44; which I don’t have in my current company) but I am looking for a change so accepted the offer.
Skills: Algorithm, data structure, database
College Name: na

Skills evaluated in this interview

Uber Interview FAQs

How many rounds are there in Uber Software Developer Intern interview?
Uber interview process usually has 2 rounds. The most common rounds in the Uber interview process are Coding Test and One-on-one Round.
What are the top questions asked in Uber Software Developer Intern interview?

Some of the top questions asked at the Uber Software Developer Intern interview -

  1. Changes on graph struct...read more
  2. Graphs related ...read more

Tell us how to improve this page.

Overall Interview Experience Rating

5/5

based on 1 interview experience

Difficulty level

Easy 100%

Duration

Less than 2 weeks 100%
View more
Uber Software Developer Intern Salary
based on 4 salaries
₹1 L/yr - ₹12 L/yr
12% more than the average Software Developer Intern Salary in India
View more details
Driver
596 salaries
unlock blur

₹2 L/yr - ₹6 L/yr

CAR Driver
355 salaries
unlock blur

₹1.8 L/yr - ₹5 L/yr

Software Engineer
236 salaries
unlock blur

₹36.2 L/yr - ₹67.5 L/yr

Senior Software Engineer
184 salaries
unlock blur

₹51.1 L/yr - ₹95 L/yr

Data Analyst
161 salaries
unlock blur

₹10.5 L/yr - ₹19.4 L/yr

Explore more salaries
Compare Uber with

Amazon

4.0
Compare

Google

4.4
Compare

Ola Cabs

3.3
Compare

Airbnb

3.7
Compare
write
Share an Interview