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
Preparation
Duration: 2-3 months
Topics: Data structures, Java Oops, DBMS, System design, leetcode top interview questions, revision from DSA course that I did at coding ninjas
Tip
Tip

Tip 1 : Practice as many pattern of questions as you can (top interview questions are really helpful)
Tip 2 : Be Thorough with whatever projects on has worked on 
Tip 3 : Basic awareness on your tech stack is very important as sometimes question get asked on basic level only

Application process
Where: Referral
Eligibility: No criteria was for experienced employees having around 2 yoe
Resume Tip
Resume tip

Tip 1 : Resume should highlight the projects you have worked on
Tip 2 : It should be clear and to the point and preferably constrained to one page only

Interview rounds

01
Round
Medium
Video Call
Duration45 Minutes
Interview date13 Apr 2022
Coding problem2

Timing : 8 am
They were 2 back to back coding rounds with 2 diff interviewers

1. Cycle Detection in a Singly Linked List

Moderate
15m average time
80% success
0/80
Asked in companies
Morgan StanleyDunzoOYO

You are given a Singly Linked List of integers. Return true if it has a cycle, else return false.


A cycle occurs when a node's next points back to a previous node in the list.


Example:
In the given linked list, there is a cycle, hence we return true.

Sample Example 1

Problem approach

Used the mid point approach.
Slow and fast pointer. Slow pointer moves one step and fast pointer moves 2 steps. If they meet at any point it means the linked list has a cycle

Try solving now

2. Vertical Order Traversal

Moderate
35m average time
65% success
0/80
Asked in companies
ArcesiumMorgan StanleyNoBroker

Given a binary tree, return the vertical order traversal of the values of the nodes of the given tree.

For each node at position (X, Y), (X-1, Y-1) will be its left child position while (X+1, Y-1) will be the right child position.

Running a vertical line from X = -infinity to X = +infinity, now whenever this vertical line touches some nodes, we need to add those values of the nodes in order starting from top to bottom with the decreasing ‘Y’ coordinates.

Note:
If two nodes have the same position, then the value of the node that is added first will be the value that is on the left side.
For example:
For the binary tree in the image below.

alt text

The vertical order traversal will be {2, 7, 5, 2, 6, 5, 11, 4, 9}.
Problem approach

Used hashmap. Key - vertical order, value - arraylist of tree nodes.
Main root is present at order 0. Left of root is stored at current order -1 and right of root is stored as current order +1. Applying recursive calls to traverse tree

Try solving now
02
Round
Medium
Video Call
Duration45 Minutes
Interview date13 Apr 2022
Coding problem2

It was back to back with first round

1. Search In Rotated Sorted Array

Moderate
30m average time
65% success
0/80
Asked in companies
InformaticaDelhiveryGoldman Sachs

Aahad and Harshit always have fun by solving problems. Harshit took a sorted array consisting of distinct integers and rotated it clockwise by an unknown amount. For example, he took a sorted array = [1, 2, 3, 4, 5] and if he rotates it by 2, then the array becomes: [4, 5, 1, 2, 3].

After rotating a sorted array, Aahad needs to answer Q queries asked by Harshit, each of them is described by one integer Q[i]. which Harshit wanted him to search in the array. For each query, if he found it, he had to shout the index of the number, otherwise, he had to shout -1.

For each query, you have to complete the given method where 'key' denotes Q[i]. If the key exists in the array, return the index of the 'key', otherwise, return -1.

Note:

Can you solve each query in O(logN) ?
Problem approach

We need 2 functions
1. Binary search
2 . Find pivot point. Pivot is the point in which array is rotated


First we find pivot point. If it is the element we return it. If are[0]<=pivot do binary search in left side of pivot else binary search on right side of pivot index

Try solving now

2. Heap Sort

Easy
15m average time
85% success
0/40
Asked in companies
OracleAmazonExpedia Group

You are given an array ‘ARR’ consisting of 'N' integers, and your task is to sort the given array in non-decreasing order using the Heap sort algorithm.

Problem approach

Main step here is the heapify function. We have to create a !ax heap. The max element is present at top of heap. We replace it with last element in the array and heapify the array excluding the last element and repeat this step until array is fully traversed

Try solving now
03
Round
Easy
Video Call
Duration45 mins
Interview date14 Apr 2022
Coding problem1

1. System Design Question

LLD - Design IRCTC - actors, data functions and data members, basic java oops concepts, a problem on concurrency. If there is one ticked available and more than 1 passenger are trying to book seat how will you design your system for such problem

Problem approach

Tip 1: practice design questions thoroughly especially for experienced roles as they are very important 
Tip 2: SOLID principles are very important for LLD rounds and their understanding with examples is important 
Tip 3: if you're tech stack is having Java be sure to be awarded of oops concepts in pov of java

04
Round
Easy
Video Call
Duration45 minutes
Interview date15 Apr 2022
Coding problem1

Hiring manager round, I was told to introduce myself, projects done in previous company, tech stack and roles and responsibilities. Discussion on Expedia team work , what will I be doing if I join, tech stack and my expectations

1. Next Greater Number

Moderate
15m average time
90% success
0/80
Asked in companies
AmazonMorgan StanleySamsung

You are given a string S which represents a number. You have to find the smallest number strictly greater than the given number which contains the same set of digits as of the original number i.e the frequency of each digit from 0 to 9 should be exactly the same as in the original number.

For example:
If the given string is 56789, then the next greater number is 56798. Note that although 56790 is also greater than the given number it contains 1 '0' which is not in the original number and also it does not contain the digit '8'.

Note:

The given string is non-empty.

If the answer does not exist, then return -1.

The given number does not contain any leading zeros.
Problem approach

1. Traverse from left and find the pivot point where current digit is smaller then to its right . Ex 724863, here 4 is the pivot
2 .now find the next largest element in the right. For our example it's 6
3.. swap these 2 digits. 726843 and then reverse from pivot index+1 till last number
Answer will be 726348

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 - 2
4 rounds | 7 problems
Interviewed by Expedia Group
1906 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
4638 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 6 problems
Interviewed by Expedia Group
2763 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 2
5 rounds | 12 problems
Interviewed by Walmart
29892 views
8 comments
0 upvotes
company logo
SDE - 2
3 rounds | 5 problems
Interviewed by Amazon
6765 views
1 comments
0 upvotes
company logo
SDE - 2
6 rounds | 8 problems
Interviewed by Amazon
5280 views
0 comments
0 upvotes