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

SDE - Intern

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

Interview preparation journey

expand-icon
Journey
Joined B. Tech and my coding journey begins. Started doing coding in Java, C++ and Python. At the end of my 3rd year, cleared SDE internship at Expedia and interned there for the summers.
Application story
Applied on the campus placement portal. Got the coding round invite easily as everyone who applies on campus get the initial coding round invite.
Why selected/rejected for the role?
SELECTED - Because of good DSA and able to answer almost all the coding questions asked in all the rounds.
Preparation
Duration: 1.5 months
Topics: DSA, DP, Sorting algos, Graphs, Heaps, Priority queues
Tip
Tip

Maintain as high as cgpa possible.
Focus on DSA instead of development.

Application process
Where: Campus
Eligibility: No criteria
Resume Tip
Resume tip

Tip 1 : Have coding platforms ranks.
Tip 2 : Mention all the competitions you have won.

Interview rounds

01
Round
Medium
Online Coding Interview
Duration120 minutes
Interview date20 Jul 2020
Coding problem2

Timing - afternoon
Environment - Online

1. Valid String

Moderate
18m average time
85% success
0/80
Asked in companies
VisaAmazonArcesium

You have been given a string 'S' containing only three types of characters, i.e. '(', ')' and '*'.

A Valid String is defined as follows:

1. Any left parenthesis '(' must have a corresponding right parenthesis ')'.
2. Any right parenthesis ')' must have a corresponding left parenthesis '('.
3. Left parenthesis '(' must go before the corresponding right parenthesis ')'.
4. '*' could be treated as a single right parenthesis ')' or a single left parenthesis '(' or an empty string.
5. An empty string is also valid.

Your task is to find out whether the given string is a Valid String or not.

Problem approach

Tip 1: Used simple O(n) logic.
Tip 2: Use constraints to determine the time complexity, thus the algorithm.

Try solving now

2. Aggressive Cows

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

You are given an array 'arr' consisting of 'n' integers which denote the position of a stall.


You are also given an integer 'k' which denotes the number of aggressive cows.


You are given the task of assigning stalls to 'k' cows such that the minimum distance between any two of them is the maximum possible.



Example:
Input: 'n' = 3, 'k' = 2 and 'arr' = {1, 2, 3}

Output: 2

Explanation: The maximum possible minimum distance will be 2 when 2 cows are placed at positions {1, 3}. Here distance between cows is 2.
Problem approach

Tip 1: Used the gives constraints to determine the O(logn) time complexity, thus started thinking binary search

Try solving now
02
Round
Medium
Video Call
Duration60 minutes
Interview date23 Jul 2020
Coding problem1

Timing - Around 10 am
Environment - Online

1. Sort an array in wave form

Easy
10m average time
85% success
0/40
Asked in companies
AmazonSAP LabsExpedia Group

You have been given an unsorted array ‘ARR’.

Your task is to sort the array in such a way that the array looks like a wave array.

Example:
If the given sequence ‘ARR’ has ‘N’ elements then the sorted wave array looks like - 
‘ARR[0] >= ARR[1]’ and ‘ARR[1] <= ARR[2]’
‘ARR[2] >= ARR[3]’ and ‘ARR[3] <= ARR[4]’
‘ARR[4] >= ARR[5]’ and ‘ARR[5] <= ARR[6]’  And so on.
Note:
1. ‘ARR[0]’ must be greater than or equal to ‘ARR[1]’.

2. There can be multiple arrays that look like a wave array but you have to return only one.

3. We have an internal function that will check your solution and return 'True' in case your array is one of the solutions otherwise return 'False'.

Explanation

The given array ‘ ARR = { 4, 3, 5, 2, 3, 1, 2 } ’
The below figure is a visual representation of the given ‘ARR’ and you can see we can express ‘ARR’ in a waveform array because 
4>3 and 3<5 
5>2 and 2<3
3>1 and 1<2
And it follows the condition of wave array.

subsequence

Follow up:
Try to solve this problem in linear time complexity.
Problem approach

Dont remember the algo, but it was simple based on modifying some sorting algo only.

Try solving now
03
Round
Medium
Video Call
Duration45 minutes
Interview date23 Jul 2020
Coding problem1

Timings - 12 noon

1. Maximum sum of non-adjacent elements

Moderate
15m average time
85% success
0/80
Asked in companies
MakeMyTripSalesforceExpedia Group

You are given an array/list of ‘N’ integers. You are supposed to return the maximum sum of the subsequence with the constraint that no two elements are adjacent in the given array/list.

Note:
A subsequence of an array/list is obtained by deleting some number of elements (can be zero) from the array/list, leaving the remaining elements in their original order.
Problem approach

Simple DP O(n)

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 - Intern
2 rounds | 4 problems
Interviewed by Expedia Group
452 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by Expedia Group
580 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Expedia Group
810 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Expedia Group
865 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - Intern
3 rounds | 6 problems
Interviewed by Amazon
15606 views
4 comments
0 upvotes
company logo
SDE - Intern
4 rounds | 7 problems
Interviewed by Microsoft
15500 views
1 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Amazon
10216 views
2 comments
0 upvotes