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

SDE - 2

Expedia Group
upvote
share-icon
5 rounds | 8 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2 months
Topics: Trees, graphs, binary search, dp, linked list, stacks, queues, heaps
Tip
Tip

Tip 1 : Be consistent
Tip 2 : Focus on solving leetcode medium without any help in 30 mins
Tip 3 : Revise what you practiced

Application process
Where: Referral
Eligibility: NA
Resume Tip
Resume tip

Tip 1 : Don't lie on resume
Tip 2 : Know everything in detail whatever you mention on resume

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 Minutes
Interview date10 Mar 2022
Coding problem1

Coding

1. Minimum Path Sum

Moderate
15m average time
85% success
0/80
Asked in companies
Expedia GroupOlaMathworks

Ninjaland is a country in the shape of a 2-Dimensional grid 'GRID', with 'N' rows and 'M' columns. Each point in the grid has some cost associated with it.


Find a path from top left i.e. (0, 0) to the bottom right i.e. ('N' - 1, 'M' - 1) which minimizes the sum of the cost of all the numbers along the path. You need to tell the minimum sum of that path.


Note:
You can only move down or right at any point in time.
Problem approach

Solved by modifications in BFS. Only modifying the input to BFS input was the main catch.

Try solving now
02
Round
Easy
Video Call
Duration60 Minutes
Interview date23 Jun 2022
Coding problem2

2 coding questions

1. Group Anagrams

Moderate
30m average time
70% success
0/80
Asked in companies
AmazonAtlassianThales

You have been given an array/list of strings 'inputStr'. You are supposed to return the strings as groups of anagrams such that strings belonging to a particular group are anagrams of one another.

An anagram is a word or phrase formed by rearranging the letters of a different word or phrase. We can generalize this in string processing by saying that an anagram of a string is another string with the same quantity of each character in it, in any order.

Note:
The order in which the groups and members of the groups are printed does not matter.
For example:
inputStr = {"eat","tea","tan","ate","nat","bat"}
Here {“tea”, “ate”,” eat”} and {“nat”, “tan”} are grouped as anagrams. Since there is no such string in “inputStr” which can be an anagram of “bat”, thus, “bat” will be the only member in its group.
Problem approach

Created custom struct object and used custom sort method. This is also a problem on leetcode that can be referred too.

Try solving now

2. Maximum Subarray Sum

Moderate
35m average time
81% success
0/80
Asked in companies
HCL TechnologiesInformaticaSamsung

You are given an array 'arr' of length 'n', consisting of integers.


A subarray is a contiguous segment of an array. In other words, a subarray can be formed by removing 0 or more integers from the beginning and 0 or more integers from the end of an array.


Find the sum of the subarray (including empty subarray) having maximum sum among all subarrays.


The sum of an empty subarray is 0.


Example :
Input: 'arr' = [1, 2, 7, -4, 3, 2, -10, 9, 1]

Output: 11

Explanation: The subarray yielding the maximum sum is [1, 2, 7, -4, 3, 2].
Problem approach

First explained recursive approach, then optimised it via dp. Kadane algo in the end.

Try solving now
03
Round
Easy
Video Call
Duration60 Minutes
Interview date23 Jun 2022
Coding problem2

Coding round

1. Odd and even positioned linked list nodes

Easy
10m average time
90% success
0/40
Asked in companies
Expedia GroupAmerican ExpressDream11

You are given a singly linked list ‘HEAD’ consisting of ‘N’ nodes. The task is to group all the odd nodes together, followed by the even nodes, maintaining the relative order of nodes given in the input. Note that we are talking about the node’s positions and not the value stored in the node. Try to write an in-place algorithm (i.e., without using any extra space) to solve this problem.

Example:
Given linked list: ‘2 => 1 => 3 => 4 => 6 => 5’

While maintaining the relative order of nodes as it is in the input, Nodes at odd positions are (2, 3, 6), and nodes at evens position are (1, 4, 5).

Modified linked list: ‘2 => 3 => 6 => 1 => 4 => 5’
Note:
1. Consider that the first node is odd, the second is even, and so on.
Problem approach

Created separate linked lists for even and odd and then merged them to one.

Try solving now

2. Trapping Rain Water

Moderate
15m average time
80% success
0/80
Asked in companies
RazorpayMorgan StanleyUber

You have been given a long type array/list 'arr’ of size 'n’.


It represents an elevation map wherein 'arr[i]’ denotes the elevation of the 'ith' bar.



Note :
The width of each bar is the same and is equal to 1.
Example:
Input: ‘n’ = 6, ‘arr’ = [3, 0, 0, 2, 0, 4].

Output: 10

Explanation: Refer to the image for better comprehension:

Alt Text

Note :
You don't need to print anything. It has already been taken care of. Just implement the given function.
Problem approach

Direct problem available on leetcode. Solved using DP after optimization.

Try solving now
04
Round
Medium
Video Call
Duration60 Minutes
Interview date23 Jun 2022
Coding problem1

1. System Design Question

Design a vending machine

Problem approach

Tip 1 : Clarify requirements in the beginning
Tip 2 : Be well versed with OOP
Tip 3 : Keep checking increments with interviewer.

05
Round
Medium
Video Call
Duration60 Minutes
Interview date23 Jun 2022
Coding problem2

Hiring Manager Round

1. Basic HR questions

Went through projects in my resume in detail and discussed what approaches were used and why.

Problem approach

Tip 1 : Be honest
Tip 2 : Listen properly
Tip 3 : Be open to suggestions

2. Basic HR Question

Leadership principles

Problem approach

Tip 1 : Reflect good values
Tip 2 : Explain examples from previous team situations.

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
4 rounds | 7 problems
Interviewed by Expedia Group
4382 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 6 problems
Interviewed by Expedia Group
2581 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
6678 views
1 comments
0 upvotes
company logo
SDE - 2
6 rounds | 8 problems
Interviewed by Amazon
5176 views
0 comments
0 upvotes