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

Frontend Developer

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

Interview preparation journey

expand-icon
Preparation
Duration: 6 months
Topics: Data structures, Pointers, Dynamic Programming, Algorithms, OOPs, DBMS, Operating System
Tip
Tip

Tip 1 : Practice above 200 questions on DSA.
Tip 2 : Ask Questions to Interviewer
Tip 3 : Don't give up on questions easily, should try at least even if you have not prepared that topic. Tell him that you have not prepared that topic but you want to give it a try.

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

Tip 1 : Have some projects on resume
Tip 2 : Be honest while mentioning things in resume.

Interview rounds

01
Round
Medium
Online Coding Test
Duration90 minutes
Interview date19 May 2021
Coding problem3

this round contains 3 coding questions on Hackerrank. All are of moderate level.Platform was fast and responsive, and we were not allowed to switch through tabs during the test.

1. Encode the Message

Easy
18m average time
90% success
0/40
Asked in companies
MicrosoftAmazonWalmart

You have been given a text message. You have to return the Run-length Encoding of the given message.

Run-length encoding is a fast and simple method of encoding strings. The basic idea is to represent repeated successive characters as the character and a single count. For example, the string "aaaabbbccdaa" would be encoded as "a4b3c2d1a2".

Try solving now

2. Minimum Distinct Labels

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

'N' boxes are placed on a table. Each box has an integer label on it. The labels present on each box are given in the array 'ARR'. Two different boxes may or may not have the same label value. You are given an integer 'M'. Your task is to remove any 'M' of the 'N' boxes such that after their removal, the number of distinct labels left on the table are minimum.

For example:

Consider M = 2 and the array ARR = [ 3, 4, 5, 3 ] 
If we remove the second and the third box, then all the boxes remaining on the table will have label 3. Hence, the minimum number of distinct labels left will be 1 in this case.
Try solving now

3. Smallest Window

Moderate
10m average time
90% success
0/80
Asked in companies
ArcesiumReliance Jio Infocomm LtdGoldman Sachs

You are given two strings S and X containing random characters. Your task is to find the smallest substring in S which contains all the characters present in X.

Example:

Let S = “abdd” and X = “bd”.

The windows in S which contain all the characters in X are: 'abdd', 'abd', 'bdd', 'bd'. 
Out of these, the smallest substring in S which contains all the characters present in X is 'bd'. 
All the other substring have a length larger than 'bd'.
Try solving now
02
Round
Medium
Video Call
Duration60 Minutes
Interview date26 May 2021
Coding problem2

Interviewer asked me 2 coding question . Both are of easy to moderate level.He also asked some questions on My projects. Explain React state and props. What are keys in React?

1. Buy and Sell Stock

Hard
0/120
Asked in companies
Samsung R&D InstituteMicrosoftSalesforce

You are Harshad Mehta’s friend. He told you the price of a particular stock for the next ‘n’ days.


You are given an array ‘prices’ which such that ‘prices[i]’ denotes the price of the stock on the ith day.


You don't want to do more than 2 transactions. Find the maximum profit that you can earn from these transactions.


Note

1. Buying a stock and then selling it is called one transaction.

2. You are not allowed to do multiple transactions at the same time. This means you have to sell the stock before buying it again. 
Example:
Input: ‘n’ = 7, ‘prices’ = [3, 3, 5, 0, 3, 1, 4].

Output: 6

Explanation: 
The maximum profit can be earned by:
Transaction 1: Buying the stock on day 4 (price 0) and then selling it on day 5 (price 3). 
Transaction 2: Buying the stock on day 6 (price 1) and then selling it on day 6 (price 4).
Total profit earned will be (3 - 0) + ( 4 - 1) = 6. 
Try solving now

2. Equilibrium Index

Easy
0/40
Asked in companies
Expedia GroupCoinbaseGoldman Sachs

You are given an array Arr consisting of N integers. You need to find the equilibrium index of the array.

An index is considered as an equilibrium index if the sum of elements of the array to the left of that index is equal to the sum of elements to the right of it.

Note:

1. The array follows 0-based indexing, so you need to return the 0-based index of the element.
2. Note that the element at the equilibrium index won’t be considered for either left sum or right sum.
3. If there are multiple indices which satisfy the given condition, then return the left-most index i.e if there are indices i,j,k…. which are equilibrium indices, return the minimum among them
4. If no such index is present in the array, return -1.
Try solving now
03
Round
Medium
Video Call
Duration60 Minutes
Interview date26 May 2021
Coding problem2

Interviewer asked me 2 coding question . Both are of easy to moderate level. What are different types of lists in HTML? What is the ‘class’ attribute in HTML?

1. Valid Parentheses

Easy
10m average time
80% success
0/40
Asked in companies
OracleAmerican ExpressPayPal

You're given a string 'S' consisting of "{", "}", "(", ")", "[" and "]" .


Return true if the given string 'S' is balanced, else return false.


For example:
'S' = "{}()".

There is always an opening brace before a closing brace i.e. '{' before '}', '(' before ').
So the 'S' is Balanced.
Try solving now

2. Convert A Given Binary Tree To Doubly Linked List

Moderate
15m average time
80% success
0/80
Asked in companies
RazorpayGoldman SachsWells Fargo

Given a Binary Tree, convert this binary tree to a Doubly Linked List.

A Binary Tree (BT) is a data structure in which each node has at most two children.

A Doubly Linked List contains a previous pointer, along with the next pointer and data.

The order of nodes in Doubly Linked List must be the same as Inorder of the given Binary Tree.

The doubly linked list should be returned by taking the next pointer as right and the previous pointer as left.

You need to return the head of the Doubly Linked List.

For the given binary tree :

alt txt

You need to return the head to the doubly linked list.
The doubly linked list would be: 1 2 3 4 5 and can be represented as:

alt txt

Try solving now
04
Round
Easy
HR Round
Duration60 Minutes
Interview date26 May 2021
Coding problem1

Fourth round was HR round.

1. Basic HR Questions

He asked me various scenario based Managerial Questions and common HR questions.

Why should we hire you?

What are your hobbies?

 

Problem approach

Tip 1 : Be clear about your thoughts and convey them crisply and clearly. 
Tip 2 : Maintain a good speech rate and answer the questions in simple and to the point sentences. 
Tip 3 : Speak Confidently.

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 - Intern
2 rounds | 4 problems
Interviewed by Expedia Group
433 views
0 comments
0 upvotes
company logo
SDE - Intern
3 rounds | 5 problems
Interviewed by Expedia Group
563 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 4 problems
Interviewed by Expedia Group
785 views
0 comments
0 upvotes
company logo
SDE - Intern
2 rounds | 3 problems
Interviewed by Expedia Group
846 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Frontend Developer
3 rounds | 11 problems
Interviewed by Amdocs
2480 views
0 comments
0 upvotes