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
I started my journey with a strong foundation in computer science fundamentals, focusing on data structures and algorithms. I honed my skills through competitive programming and personal projects. Consistent practice on coding platforms and learning from my mistakes were key. Networking with industry professionals and staying updated with the latest technologies helped me secure an SDE-2 position at Expedia.
Application story
I received a job alert from LinkedIn, obtained a referral, and applied. I got a test link in two weeks, and after another two weeks, I was called for interviews. There were four interviews (2 DSA, 1 LLD, and 1 HM). Two to three weeks after the last round, the interviewer informed me of my selection.
Why selected/rejected for the role?
Both of my DSA rounds were pretty good. I solved all the problems ahead of time without any bugs. A strong grip on problem-solving and DSA was the reason behind my selection.
Preparation
Duration: 3 months
Topics: DSA (Array, String, Two Pointer, Binary search, sliding window, hashing, heaps), LLD, OOPS, Databases, HLD basics
Tip
Tip

Tip 1: Focus on quality, not quantity. 

Tip 2: Practice a limited number of standard problems but always revise solved problems before tackling new ones. 

Tip 3: Be prepared to explain your projects in detail; most people mess up at this point.

Application process
Where: Referral
Eligibility: Nothing as such
Resume Tip
Resume tip

Tip 1: Include links to coding platforms in your resume. 

Tip 2: Incorporate all relevant keywords from the job description into your resume to increase the chances of getting shortlisted.

Interview rounds

01
Round
Medium
Video Call
Duration60 minutes
Interview date25 Jan 2024
Coding problem2

Timing: Morning 10-11 AM
The interviewer was on the SDE-3 profile. He was supportive, calm, and to the point, giving hints wherever needed.
His behaviour maintained a good environment throughout the interview.

1. Broken Calculator

Easy
20m average time
80% success
0/40
Asked in companies
ArcesiumDisney + HotstarExpedia Group

Given an initial number x and two operations which are given below:
a) Multiply the number by 2.
b) Subtract 1 from the number.
The task is to find out the minimum number of operations required to convert the number x into y using only the above two operations. We can apply these operations any number of times.

Input : x = 4, y = 7
Output: 2
1.⁠ ⁠4*2 = 8
2.⁠ ⁠8-1 = 7

Problem approach

Step 1: I started my solution from x and tried to go until y. 

Step 2: This solution did not cover all the cases, and the interviewer was also not happy with it. 

Step 3: Then I started from y and went until x, and the problem was solved.

Try solving now

2. Subsequences of String

Moderate
15m average time
85% success
0/80
Asked in companies
Chegg Inc.Expedia GroupQuikr

Given a string s of length n, find the alphabetically largest subsequence of length i possible for each i where (1 ≤ i ≤ n).
Note: A subsequence is a string left after deleting some or no characters from the original string without changing their order. For example, "ac" is a subsequence of "abcd" but "ca" is not.

Example
Consider s = "hrw". The alphabetically largest subsequence

of length 1 is "w".
of length 2 is "rw".
of length 3 is "hrw".
The answer is ["w", "rw", "hrw"], without quotes.

Problem approach

Step 1: Solved using a stack; for every length L, initialize a stack and traverse the string.

Step 2: If the current character is greater than the stack's top element and the string has sufficient characters remaining to fulfil the current length L after popping the top character, then pop it out; otherwise, continue.

Step 3: The interviewer was satisfied with the approach. I quickly coded it after the discussion.

Try solving now
02
Round
Medium
Video Call
Duration60 minutes
Interview date26 Jan 2024
Coding problem2

Timing: Morning 10-11 AM
This was again the SDE-3 profile interviewer. He was supportive, calm, and to the point, giving hints wherever needed.
His behaviour maintained a good environment throughout the interview.

1. Jump Game

Moderate
15m average time
85% success
0/80
Asked in companies
ZSOLX GroupDisney + Hotstar

Given an array arr[] where each element represents the maximum number of steps that can be made forward from that index, the task is to find the minimum number of jumps to reach the end of the array starting from index 0.

Input: arr[] = {1, 3, 5, 8, 9, 2, 6, 7, 6, 8, 9}
Output: 3 (1-> 3 -> 9 -> 9)

Problem approach

Step 1: This was a standard problem(Jump game)
Step 2: I had solved this problem so I told the logic and coded quickly.
Step 3: The interview was happy and gave one more problem.

Try solving now

2. Lexicographically Smallest Subsequence of Distinct Characters.

Easy
20m average time
80% success
0/40
Asked in companies
Expedia GroupAmazonOla

Given string str of lower case English alphabets. One can choose any two characters in the string and replace all the occurrences of the first character with the second character and replace all the occurrences of the second character with the first character. Find the lexicographically smallest string that can be obtained by doing this operation at most once.

Input: str = “ccad”
Output: aacd

Problem approach

Step 1: Traverse the array once to find which two characters should be swapped.

Step 2: Start from the beginning and find the smallest character in the remaining array that is smaller than the current character. If all remaining characters are bigger, repeat this for the next character.

Step 3: In a final traversal, swap all the occurrences.

Try solving now
03
Round
Medium
Video Call
Duration60 minutes
Interview date5 Mar 2024
Coding problem1

It was an LLD round in the early morning from 10 to 11 AM. 

A principal software engineer conducted the interview; he was very calm and helpful, asking every detail in a very friendly manner.

1. Design LRU cache with some modification.

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

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

Step 1: It was a standard design LRU cache problem with some modification
Step 2: So I quickly told the approach and then coded as well.
Step 3: Then the interviewer asked me a few questions to test my design pattern knowledge.

Try solving now
04
Round
Medium
HR Round
Duration60 minutes
Interview date7 Mar 2024
Coding problem1

This was the HM round, also held in the early morning at 10 AM. However, the interviewer was not in a good mood. He finished the interview in 30 minutes and made me feel like my chances were over. Fortunately, due to my good performance in the first three interviews, I was able to proceed.

1. HR Questions

Mostly standard HM questions and about the project, I will list down a few
 

  1. Tell me about yourself.
  2. Why are you leaving your current organisation?
  3. Went deep into the project.
  4. Few questions on system design.
  5. Most challenging project and why?
  6. The time when you went above your responsibilities.
Problem approach

Prepare well, be confident and prepare well for cross-questions.

Here's your problem of the day

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

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 2
4 rounds | 7 problems
Interviewed by Expedia Group
1817 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
5 rounds | 8 problems
Interviewed by Expedia Group
1022 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 7 problems
Interviewed by Expedia Group
4381 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 2
5 rounds | 12 problems
Interviewed by Walmart
29570 views
8 comments
0 upvotes
company logo
SDE - 2
3 rounds | 5 problems
Interviewed by Amazon
6677 views
1 comments
0 upvotes
company logo
SDE - 2
6 rounds | 8 problems
Interviewed by Amazon
5175 views
0 comments
0 upvotes