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

SDE - 2

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

Interview preparation journey

expand-icon
Preparation
Duration: 2 Months
Topics: Data structures and Algorithms, Java(oops language), SQL, LLD, HLD
Tip
Tip

Tip 1 : Practice Leetcode/coding ninjas as much as possible 
Tip 2 : Go through Past Interview Experiences
Tip 3 : Focus on your resume

Application process
Where: Other
Eligibility: No
Resume Tip
Resume tip

Tip 1 : Be precise and focus on Quantitative Data 
Tip 2 : Mention all the major projects which shows how much you have contributed towards your firm.

Interview rounds

01
Round
Medium
Face to Face
Duration60 Minutes
Interview date13 Apr 2022
Coding problem2

1. 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

1. Traversed every array element and find the highest bars on the left and right sides. Then take the smaller of two and difference between the smaller height and the height of the current element is the amount of water that can be stored in this array element.
2. Interviewer asked to optimize the solution as it involves lot of traversing.
3. New approach: pre-compute the highest bar on the left and right of every bar in linear time. Then use these pre-computed values to find the amount of water in every array element.

Try solving now

2. Excel Column Number

Easy
23m average time
0/40
Asked in companies
OptumAppleOracle

You have been given a column title as appears in an Excel sheet, return its corresponding column number.

For example:
A -> 1
B -> 2
C -> 3
...
Z -> 26
AA -> 27
AB -> 28 
...
Try solving now
02
Round
Medium
Face to Face
Duration60 Minutes
Interview date13 Apr 2022
Coding problem2

1. Number of Islands

Easy
0/40
Asked in companies
PhonePeExpedia GroupRazorpay

You have been given a non-empty grid consisting of only 0s and 1s. You have to find the number of islands in the given grid.

An island is a group of 1s (representing land) connected horizontally, vertically or diagonally. You can assume that all four edges of the grid are surrounded by 0s (representing water).

Problem approach

1. This is the DFS/BFS related problem. solved using DFS at first.
2. Interviewer was happy with the solution and asked further questions like what if surrounding is land rather than water. How will the solution change.

Try solving now

2. Convert Number To Words

Hard
40m average time
75% success
0/120
Asked in companies
AppleFacebookExpedia Group

You are given an Integer ‘N’ you have to convert the integer to words.

For example you are given integer N = 2234 then you have to return the string “two thousand two hundred and thirty four”.

Try solving now
03
Round
Medium
Video Call
Duration60 Minutes
Interview date13 Apr 2022
Coding problem1

1. System Design Question

Design Book My Show

Problem approach

Tip 1 : understand the requirements and ask questions to check what exactly one is looking out for.
Tip 2 : Follow the design patterns as much as you can.
Tip 3 : Follow the oops concepts

04
Round
Medium
Face to Face
Duration30 Minutes
Interview date14 Apr 2022
Coding problem2

1. Next Greater Element - I

Moderate
0/80
Asked in companies
Expedia GroupAdobeAmazon

You are given an array ‘A’ containing a permutation ‘N’ numbers (0 ≤ A[i] < N). You are also given another array ‘B’ containing a permutation ‘M’ numbers (0 ≤ B[j] < M) and it is also given that N ≤ M.

For each element in array ‘A’ you need to find the first greater element to the right of the element in array ‘B’ that has the same value as the current array A’s element. In other words, for each ‘i’ from 0 to N - 1 in array ‘A’, you need to find an index ‘j’ in array ‘B’ such that A[i] = B[j], now you need to print the element that lies on the right of the j’th index and is also greater than B[j]. Print -1 if there is no greater element.

Follow Up :
Can you solve it in O(N+M) time?
For Example :
If ‘N’ = 6, ‘A’ = {1, 2, 0, 3, 4, 5}, ‘M’ = 7 and ‘B’ = {3, 5, 0, 2, 1, 6, 4}.

Then, we will return {6, 6, 2, 5, -1, 6} because:
For i = 0, A[i] = 1 and the first element greater than 1 that lies to the right of it in array ‘B’ is 6.
For i = 1, A[i] = 2 and the first element greater than 2 that lies to the right of it in array ‘B’ is 6.
For i = 2, A[i] = 0 and the first element greater than 0 that lies to the right of it in array ‘B’ is 2.
For i = 3, A[i] = 3 and the first element greater than 3 that lies to the right of it in array ‘B’ is 5.
For i = 4, A[i] = 4 and there is no greater element to the right of 4 in array ‘B’.
For i = 5, A[i] = 5 and the first element greater than 5 that lies to the right of it in array ‘B’ is 6.
Problem approach

1. traverse the array backwards till the curr number is smaller than the previous one. let's say index i.
2. reverse the array starting i till end.

Try solving now

2. Javascript Question

Given a Javascript object with the auth credentials. convert that object into the desired format and extract credentials out of it.

Problem approach

1. Iterate the Js object and get the username and password.
2. convert into the desired format.

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
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
1021 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 7 problems
Interviewed by Expedia Group
4381 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 6 problems
Interviewed by Expedia Group
2580 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 2
5 rounds | 12 problems
Interviewed by Walmart
29569 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