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

SDE - 2

Expedia Group
upvote
share-icon
4 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Journey
An HR from Expedia Group reached out to me on naukri.com regarding the job. Total interview rounds: 4 There are 3 technical rounds and one managerial round which you need to clear in order to get into the company.
Application story
An HR reached out to me on naukri.com regarding the job opening, after my resume got shortlisted 4 rounds of interview were conducted. 2 coding rounds, 1 coding + system design round and 1 managerial round
Why selected/rejected for the role?
Rejected for the role. I failed in system design round as I was less prepared. For SDE2 roles, system design preparation is must.
Preparation
Duration: 2 months
Topics: Java, OOPs, Data Structures, Algorithms, System Design
Tip
Tip

Tip 1 : Prepare Easy and medium level questions
Tip 2 : Prepare for System Design
Tip 3 : Practice 2-3 questions daily. Consistency is the key.

Application process
Where: Campus
Eligibility: 2+ years of experience
Resume Tip
Resume tip

Tip 1 : Every information on the resume should be correct and on your fingertips
Tip 2 : Mention good projects on your resume and the impact you made on that project

Interview rounds

01
Round
Medium
Video Call
Duration90 minutes
Interview date26 Nov 2021
Coding problem2

First round was 1.5hr coding round on video call. It was a medium level coding problem. Interviewer was very polite and helpful.

1. LCA Of Binary Tree

Moderate
10m average time
90% success
0/80
Asked in companies
GrabDisney + HotstarShareChat

You have been given a Binary Tree of distinct integers and two nodes ‘X’ and ‘Y’. You are supposed to return the LCA (Lowest Common Ancestor) of ‘X’ and ‘Y’.


The LCA of ‘X’ and ‘Y’ in the binary tree is the shared ancestor of ‘X’ and ‘Y’ that is located farthest from the root.


Note :
You may assume that given ‘X’ and ‘Y’ definitely exist in the given binary tree.
For example :
For the given binary tree

Example

LCA of ‘X’ and ‘Y’ is highlighted in yellow colour.
Problem approach

I gave the Recursive/DFS solution and interviewer was satisfied with the approach.
TC: O(n)
SC: O(n)

Try solving now

2. Sort An Array of 0s, 1s and 2s

Easy
10m average time
90% success
0/40
Asked in companies
IBMSamsungDirecti

You have been given an array/list 'arr' consisting of 'n' elements.


Each element in the array is either 0, 1 or 2.


Sort this array/list in increasing order.


Do not make a new array/list. Make changes in the given array/list.


Example :
Input: 'arr' = [2, 2, 2, 2, 0, 0, 1, 0]

Output: Final 'arr' = [0, 0, 0, 1, 2, 2, 2, 2]

Explanation: The array is sorted in increasing order.
Problem approach

Step 1 : I first applied counting sort. It was not good enough.
Step 2 : Interviewer asked me to optimise the solution.
Step 3 : Then i gave solution with Dutch national flag algorithm and interviewer was happy.

Try solving now
02
Round
Medium
Video Call
Duration90 minutes
Interview date28 Nov 2021
Coding problem2

This round was coding + Low level System design round. This was also video call round. Interviewer was helpful.

1. Delete Kth node From End

Moderate
15m average time
95% success
0/80
Asked in companies
Expedia GroupSquadstackAmazon

You have been given a singly Linked List of 'N' nodes with integer data and an integer 'K'.


Your task is to remove the 'K'th node from the end of the given Linked List and return the head of the modified linked list.


Example:
Input : 1 -> 2 -> 3 -> 4 -> 'NULL'  and  'K' = 2
Output: 1 -> 2 -> 4 -> 'NULL'
Explanation:
After removing the second node from the end, the linked list become 1 -> 2 -> 4 -> 'NULL'.

altImage


Problem approach

Step 1 : I first gave two pass solution. It was not good enough.
Step 2 : Interviewer asked me to optimise the solution.
Step 3 : Then i gave solution with one pass solution and interviewer was satisfied.

Try solving now

2. Design Question

Design tic tac toe game

Problem approach

Tip 1: Don't throw buzz words. You should have the proper understanding of the terms you are saying.
Tip 2: Practice at least 8-10 system design case studies.
Tip 3: Prepare fundamental theory well

03
Round
Easy
Video Call
Duration60 minutes
Interview date7 Dec 2021
Coding problem1

This round was High level System design round. This was also video call round. Interviewer was helpful.

1. Design Question

Design a shopping cart system

Problem approach

Tip 1 : Don't throw buzz words. You should have the proper understanding of the terms you are saying.
Tip 2 : Practice at least 8-10 system design case studies.

04
Round
Easy
Video Call
Duration60 minutes
Interview date28 Dec 2021
Coding problem1

This round was techno managerial round. Interviewer was friendly and polite. System design and some behavioural questions.

1. LRU Cache Implementation

Moderate
25m average time
65% success
0/80
Asked in companies
MicrosoftUberSalesforce

Design and implement a data structure for Least Recently Used (LRU) cache to support the following operations:

1. get(key) - Return the value of the key if the key exists in the cache, otherwise return -1.

2. put(key, value), Insert the value in the cache if the key is not already present or update the value of the given key if the key is already present. When the cache reaches its capacity, it should invalidate the least recently used item before inserting the new item.
You will be given ‘Q’ queries. Each query will belong to one of these two types:
Type 0: for get(key) operation.
Type 1: for put(key, value) operation.
Note :
1. The cache is initialized with a capacity (the maximum number of unique keys it can hold at a time).

2. Access to an item or key is defined as a get or a put operation on the key. The least recently used key is the one with the oldest access time.
Problem approach

Tip 1: Requirements clarifications.
Tip 2: Create a high-level design
Tip 3: Database Design
Tip 4: Design core components and scale the design

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 - 2
4 rounds | 7 problems
Interviewed by Expedia Group
1906 views
0 comments
0 upvotes
company logo
SDE - 2
5 rounds | 7 problems
Interviewed by Expedia Group
0 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 7 problems
Interviewed by Expedia Group
4638 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 6 problems
Interviewed by Expedia Group
2763 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 2
5 rounds | 12 problems
Interviewed by Walmart
29892 views
8 comments
0 upvotes
company logo
SDE - 2
3 rounds | 5 problems
Interviewed by Amazon
6765 views
1 comments
0 upvotes
company logo
SDE - 2
6 rounds | 8 problems
Interviewed by Amazon
5280 views
0 comments
0 upvotes