Problem database last updated: June 20, 2025

EExpedia logo

Expedia Coding Interview Questions

45 problems · 14 Easy, 27 Medium, 4 Hard · Ranked #46 of 458

Difficulty breakdown

14 Easy

31% · avg 23%

27 Medium

60% · avg 59%

4 Hard

9% · avg 18%

Top topics

array
53.3%
string
31.1%
hash-table
24.4%
two-pointers
17.8%
dynamic-programming
17.8%
greedy
15.6%1.8x

Interview profile

Based on 45 reported problems, Expedia interviews are in line with industry averages - 9% Hard vs 18% overall. The majority (60%) of questions are Medium difficulty, which is typical for companies that want to see solid fundamentals without excessive trick questions.

Compared to the industry average, Expedia puts unusual emphasis on memoization (4.4% of problems, 2.7x the industry average), monotonic-stack (6.7% of problems, 2.3x the industry average), greedy (15.6% of problems, 1.8x the industry average). If you're short on time, these are the categories to double down on.

The most common topics are array (53.3%), string (31.1%), hash-table (24.4%), two-pointers (17.8%). Problems below are sorted by frequency, the ones at the top are asked most often.

All 45 problems

Find the Smallest Divisor Given a Threshold

Solve

Given an array of integers nums and an integer threshold, we will choose a positive integer divisor, divide all the array by it, and sum the division's result....

MediumVery Likely
arraybinary-search

Valid Triangle Number

Solve

Given an integer array nums, return the number of triplets chosen from the array that can make triangles if we take them as side lengths of a triangle.

MediumVery Likely
arraytwo-pointersbinary-search

The kth Factor of n

Solve

You are given two positive integers n and k. A factor of an integer n is defined as an integer i where n % i == 0.

MediumVery Likely
mathnumber-theory

String Compression

Solve

Given an array of characters chars, compress it using the following algorithm:

MediumVery Likely
two-pointersstring

Valid Word

Solve

A word is considered valid if:

EasyVery Likely
string

Minimum One Bit Operations to Make Integers Zero

Solve

Given an integer n, you must transform it into 0 using the following operations any number of times:

HardVery Likely
mathdynamic-programmingbit-manipulation

Break a Palindrome

Solve

Given a palindromic string of lowercase English letters palindrome, replace exactly one character with any lowercase English letter so that the resulting string...

MediumVery Likely
stringgreedy

Divide Players Into Teams of Equal Skill

Solve

You are given a positive integer array skill of even length n where skill[i] denotes the skill of the ith player. Divide the players into n / 2 teams of size 2...

MediumVery Likely
arrayhash-tabletwo-pointers

Minimum Replacements to Sort the Array

Solve

You are given a 0-indexed integer array nums. In one operation you can replace any element of the array with any two elements that sum to it.

HardVery Likely
arraymathgreedy

Rearrange Words in a Sentence

Solve

Given a sentence text (A sentence is a string of space-separated words) in the following format:

MediumVery Likely
stringsorting

Most Visited Sector in a Circular Track

Solve

Given an integer n and an integer array rounds. We have a circular track which consists of n sectors labeled from 1 to n. A marathon will be held on this track,...

EasyVery Likely
arraysimulation

Valid Parentheses

Solve

Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.

EasyVery Likely
stringstack

Remove Duplicate Letters

Solve

Given a string s, remove duplicate letters so that every letter appears once and only once. You must make sure your result is the smallest in lexicographical or...

MediumVery Likely
stringstackgreedy

Longest Substring Without Repeating Characters

Solve

Given a string s, find the length of the longest substring without duplicate characters.

MediumLikely
hash-tablestringsliding-window

Best Time to Buy and Sell Stock

Solve

You are given an array prices where prices[i] is the price of a given stock on the ith day.

EasyLikely
arraydynamic-programming

Group Anagrams

Solve

Given an array of strings strs, group the anagrams together. You can return the answer in any order.

MediumLikely
arrayhash-tablestring

Trapping Rain Water

Solve

Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.

HardLikely
arraytwo-pointersdynamic-programming

Set Matrix Zeroes

Solve

Given an m x n integer matrix matrix, if an element is 0, set its entire row and column to 0's.

MediumLikely
arrayhash-tablematrix

Capacity To Ship Packages Within D Days

Solve

A conveyor belt has packages that must be shipped from one port to another within days days.

MediumLikely
arraybinary-search

Find the City With the Smallest Number of Neighbors at a Threshold Distance

Solve

There are n cities numbered from 0 to n-1. Given the array edges where edges[i] = [fromi, toi, weighti] represents a bidirectional and weighted edge between cit...

MediumLikely
dynamic-programminggraphshortest-path

Minimum Number of Swaps to Make the String Balanced

Solve

You are given a 0-indexed string s of even length n. The string consists of exactly n / 2 opening brackets '[' and n / 2 closing brackets ']'.

MediumLikely
two-pointersstringstack

Max Consecutive Ones III

Solve

Given a binary array nums and an integer k, return the maximum number of consecutive 1's in the array if you can flip at most k 0's.

MediumLikely
arraybinary-searchsliding-window

Roman to Integer

Solve

Roman numerals are represented by seven different symbols: I, V, X, L, C, D and M.

EasyLikely
hash-tablemathstring

House Robber

Solve

You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from rob...

MediumLikely
arraydynamic-programming

Jump Game II

Solve

You are given a 0-indexed array of integers nums of length n. You are initially positioned at index 0.

MediumLikely
arraydynamic-programminggreedy

Number of Islands

Solve

Given an m x n 2D binary grid grid which represents a map of '1's (land) and '0's (water), return the number of islands.

MediumLikely
arraydepth-first-searchbreadth-first-search

Degree of an Array

Solve

Given a non-empty array of non-negative integers nums, the degree of this array is defined as the maximum frequency of any one of its elements.

EasyLikely
arrayhash-table

Subarray Sums Divisible by K

Solve

Given an integer array nums and an integer k, return the number of non-empty subarrays that have a sum divisible by k.

MediumLikely
arrayhash-tableprefix-sum

Number of Visible People in a Queue

Solve

There are n people standing in a queue, and they numbered from 0 to n - 1 in left to right order. You are given an array heights of distinct integers where heig...

HardLikely
arraystackmonotonic-stack

Reverse Linked List

Solve

Given the head of a singly linked list, reverse the list, and return the reversed list.

EasyLikely
linked-listrecursion

Longest Increasing Subsequence

Solve

Given an integer array nums, return the length of the longest strictly increasing subsequence.

MediumLikely
arraybinary-searchdynamic-programming

Add Two Numbers

Solve

You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains a sing...

MediumLikely
linked-listmathrecursion

Merge Sorted Array

Solve

You are given two integer arrays nums1 and nums2, sorted in non-decreasing order, and two integers m and n, representing the number of elements in nums1 and num...

EasyLikely
arraytwo-pointerssorting

Merge Intervals

Solve

Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the non-overlapping intervals that cove...

MediumLikely
arraysorting

Climbing Stairs

Solve

You are climbing a staircase. It takes n steps to reach the top.

EasyLikely
mathdynamic-programmingmemoization

Two Sum

Solve

Given an array of integers nums and an integer target, return the indices of the two numbers that add up to target.

EasyLikely
arrayhash-map

Least Number of Unique Integers after K Removals

Solve

Given an array of integers arr and an integer k. Find the least number of unique integers after removing exactly k elements.

MediumLikely
arrayhash-tablegreedy

Count Number of Pairs With Absolute Difference K

Solve

Given an integer array nums and an integer k, return the number of pairs (i, j) where i < j such that |nums[i] - nums[j]| == k.

EasyLikely
arrayhash-tablecounting

Minimum Number of Chairs in a Waiting Room

Solve

You are given a string s. Simulate events at each second i:

EasyLikely
stringsimulation

Keys and Rooms

Solve

There are n rooms labeled from 0 to n - 1 and all the rooms are locked except for room 0. Your goal is to visit all the rooms. However, you cannot enter a locke...

MediumLikely
depth-first-searchbreadth-first-searchgraph

Permutation in String

Solve

Given two strings s1 and s2, return true if s2 contains a permutation of s1, or false otherwise.

MediumLikely
hash-tabletwo-pointersstring

Rotting Oranges

Solve

You are given an m x n grid where each cell can have one of three values:

MediumLikely
arraybreadth-first-searchmatrix

LRU Cache

Solve

Design a data structure that follows the constraints of a Least Recently Used (LRU) cache.

MediumLikely
hash-tablelinked-listdesign

Find the Index of the First Occurrence in a String

Solve

Given two strings needle and haystack, return the index of the first occurrence of needle in haystack, or -1 if needle is not part of haystack.

EasyLikely
two-pointersstringstring-matching

Reformat Date

Solve

Given a date string in the form Day Month Year, where:

EasyLikely
string

How often are these problems asked?

Frequency scores are based on crowdsourced interview reports. A higher score means the problem has been reported more often in recent Expedia interviews.

Very Likely

75-100%

Likely

50-74%

Sometimes

25-49%

Rare

0-24%

Preparing for your Expedia coding interview

Expedia interviews focus heavily on array, string, hash-table problems. If you're short on time, these are the categories to prioritize. The problems on this page are sorted by frequency, so start from the top and work your way down.

Beyond solving problems, practice explaining your approach. Expedia interviewers care about your thought process - how you break down a problem, consider edge cases, and evaluate tradeoffs between solutions. A clean O(n) solution you can explain clearly beats an O(log n) solution you can't articulate.

Looking for more companies? Browse all 458 companies in our directory, or sharpen your fundamentals with our free data structure visualizers and AI-powered DSA tutor.

Frequently Asked Questions

What coding problems does Expedia ask in interviews?add

Expedia has been reported to ask 45 distinct coding problems. The most common topics are array, string, hash-table. 14 are Easy difficulty, 27 are Medium, and 4 are Hard. Problems are sorted by frequency - the ones at the top are asked most often.

How hard are Expedia coding interviews?add

Based on 45 reported problems, Expedia interviews are in line with industry averages - 9% Hard vs 18% overall. 60% of questions are Medium difficulty. Focus on the high-frequency Medium problems first, then work through the Hard ones.

How should I prepare for a Expedia coding interview?add

Start with the highest-frequency problems listed on this page. Focus on the core topics: array, string, hash-table. Practice solving them under time pressure and explaining your approach out loud. Mock interviews with AI can simulate the real experience.

Other companies to explore

Ready to ace your Expedia interview?

Simulate a real Expedia coding interview with an AI interviewer. Get a scorecard with specific feedback on your problem-solving, code quality, and communication.

Simulate a Expedia interview with AIarrow_forward