InterviewLegend

The Expedia Online Assessment (HackerRank)

Alex Chen45 min readGuide updated
In this lesson
  • Know the Expedia OA format for interns, new grads and SDE 2 candidates
  • Understand how hidden test cases grade the HackerRank test
  • Solve the three problems from a March 2026 SDE 2 assessment
  • Practice three older Expedia OA problems from 2020 to 2025

The Expedia online assessment is a timed HackerRank test, and for a lot of candidates it's the first technical step. Expedia's own HackerRank page gives software and security candidates 90 minutes, any language HackerRank supports, and input read from STDIN. Interns and new grads reach it after a strengths-based assessment. Experienced candidates in India almost always take it. In the US, many experienced candidates skip it and start with a live screen, though some SDE 2 candidates took an OA first in 2026.

The problems are LeetCode-style, mostly easy to medium with the occasional hard one. Below you'll find the format by role, what changed in 2026 and how grading works. After that come six past problems in runnable code: the full March 2026 SDE 2 set first, then three older ones, each dated.

The Expedia angle
Hidden tests decide the Expedia OA. Candidates who passed every visible case still lost points on hidden ones, often at the largest inputs. Read the constraints first and pick an approach that holds at the top of the range.

Expedia online assessment format

The shape depends on your track more than on the year. Here is what Expedia publishes and what candidates have described since 2025.

  • Platform: HackerRank, about 90 minutes. Expedia's HackerRank page sets 90 minutes for software and security roles. One 2025 SDE sitting ran 105 minutes with three problems.
  • Experienced hires: usually three problems in 90 minutes. SDE 2 sets in 2025 and 2026 ran easy to hard, for example one easy and two mediums in March 2026.
  • Interns and new grads: two or three problems, sometimes with MCQs. One October 2025 intern test was 60 minutes with six multiple-choice questions and two coding problems.
  • Language and input: any HackerRank language, read STDIN. In Java the class has to be named Solution. Check the language picker before you start typing.
  • Proctoring: camera and screen recorded. 2025 candidates describe HackerRank recording both. Expedia says its assessments flag signs of automated or copied answers.
  • Grading: visible and hidden test cases. Your score is the share of tests you pass. A perfect score has not always meant a next round.

The strengths-based assessment before the HackerRank test

Early-career applicants take two assessments. Expedia's Emerging Talent page says suitable applicants "will be encouraged to complete both an immersive strength-based online assessment and a skills-based assessment." The strength-based one is behavioral and automated, and candidates usually get it first, sometimes right after they apply. One 2026 new-grad candidate in Canada even got a feedback report from it. It can screen you out, so answer it honestly and with care. The HackerRank invite tends to follow within days or a couple of weeks.

Expedia SWE intern OA

Intern and new-grad tests vary more than the experienced ones. The October 2025 intern sitting above had six multiple-choice questions and two coding problems, worth 50 and 75 points. Another candidate that month called the pair one hard and one medium, and a third said they were mediums. A London candidate in early 2026 also got two coding questions plus a few multiple-choice ones. Plan for two or three easy-to-medium problems and be ready for one hard. For what comes after, see the intern and new-grad lesson.

Expedia SDE 2 OA

SDE 2 sets are three problems in 90 minutes, mostly described from India. The March 2026 set was one easy and two mediums, and it's worked in full below. A November 2025 set covered sorting, a sliding window and a DP or greedy problem. An April 2025 set had an implementation question, an easy-to-medium DP and a medium-hard graph problem. In June 2025 it was two easy string problems and one medium-hard string problem. A topic list like that is a better guide than any single problem name.

What changed in 2026

Two 2026 reports describe a different mix. In October 2026 an SDE 2 candidate wrote that the upcoming HackerRank invite listed a DSA problem, a prompt-engineering question and an implementation question. A May 2026 summary of a US software OA also mentions prompt-engineering questions. That's two reports, one of them secondhand, so treat it as a possible format and read your own invite closely.

It fits Expedia's published AI policy. Its policy says to avoid "Letting an AI tool complete a live coding, writing, or video assessment on your behalf unless the assessment specifically requires testing this effort; we will notify you with instructions when that's the case." So the default is no AI, and a question that does allow it will say so. If your invite lists an implementation question, expect something closer to working code than to a puzzle. A March 2025 OA, for example, had a shopping-cart billing problem that applied the best of several discount types to each product.

How the Expedia OA is graded

Each problem runs against visible cases and a larger hidden set. An intern in October 2025 passed 15 of 15 on the easy problem and then 5 of 15 and 10 of 15 on the other two, failing hidden cases. In 2024 an SDE 2 candidate found the cipher problem easy to write and still failed "a LOT of hidden test cases" on the first attempt. Hidden cases tend to live at the edges: the smallest input, the largest one, the value that has to wrap around.

A clean score doesn't guarantee a call either. One SWE II candidate solved all three problems in 30 minutes in August 2025 and never heard back. An October 2025 intern passed every visible and hidden test and wasn't moved forward. Expedia doesn't publish what happens between the test and the next call. Aim for a full score and keep applying while you wait.

Expedia's page also says to read input from STDIN. Most HackerRank problems hand you a function to fill in, but if yours asks you to parse input yourself, a million numbers read line by line in Python is slow. Read everything at once.

python
import sys
def main():
data = sys.stdin.buffer.read().split() # every token at once
count = int(data[0])
prices = list(map(int, data[1:1 + count]))
print(total_cost(prices))
main()

Read the constraints before the examples. With a million prices only a single pass survives. With a thousand strings of a thousand letters you count letters instead of simulating swaps. A 300 by 300 matrix is small enough for a plain search over every cell.

Expedia HackerRank questions

The first three problems are the March 2026 SDE 2 set in order. Each uses the plain function format: the test input is the function's arguments, and the expected value is what it returns. Write your solution, run it against the cases, then open the walkthrough.

This first one was the easy opener of that March 2026 set, with up to a million prices.

1

Discount by Lowest Earlier Price

EasyCommonly asked
Problem
You buy items at a market in the order given by prices. The first item costs its full price. Every later item gets a discount equal to the lowest price among all the items bought before it, and no item can cost less than 0.

Return the total cost of buying every item. There can be up to a million prices, each up to ten million, so the total can be larger than a 32-bit integer holds.
Inputprices = [2, 5, 1, 4]Output8

The first item costs 2. Then 5 - 2 = 3, then 1 - 2 floors at 0, then 4 - 1 = 3, since the lowest earlier price is now 1. The total is 2 + 3 + 0 + 3 = 8.

How this uses the pattern

Keep one running value, the lowest price seen so far. Charge each item against it, then update it.

Write it here, or go full screen with the problem, hints and solution beside the editor.

Discount by Lowest Earlier Price

Loading...
Click "Run" to execute your code
The Expedia angle
This was question 1 of 3 on a March 2026 SDE 2 assessment, the easy one. It's there to be banked fast, and three things tend to cost points. First, rescanning every earlier price is quadratic, and a million items times out. Second, the total passes two billion, so a Java or C++ int overflows and you need a 64-bit type. Third, the first item takes no discount, so start the running minimum after charging it. Five minutes here buys time for the two mediums that follow.
Take it further
A good extension to practice: the discount is the lowest price among only the last k items. The running minimum no longer works, because the cheapest item can fall out of the window. Keep a deque of indices with increasing prices, the same monotonic queue as sliding window maximum, which Expedia has asked in live rounds from 2025 into 2026. The walkthrough codes it.

Question 2 of the same March 2026 set looks like a string-editing problem until you check the limits: a thousand strings, each up to a thousand letters.

2

Maximum Palindromes After Swaps

MediumCommonly asked
Problem
You're given words, a list of lowercase strings. In one operation you may swap any two letters, whether they sit in the same string or in two different strings. You can do as many operations as you like.

Return the largest number of strings in words that can be palindromes at the same time. Lengths never change, since a swap only moves letters around.
Inputwords = ["pass", "sas", "asps", "df"]Output3

Swaps can make "paap", "sas" and "ssss". "df" has two different letters and nothing left to pair with, so 3 is the best.

How this uses the pattern

Since any letter can go anywhere, only the letter counts matter. Count how many matching pairs exist across all strings, then spend them on the shortest strings first.

Write it here, or go full screen with the problem, hints and solution beside the editor.

Maximum Palindromes After Swaps

Loading...
Click "Run" to execute your code
The Expedia angle
This was question 2 of the March 2026 SDE 2 assessment. The statement walks through actual swaps with 1-based indices, which pulls people toward simulating them, and with a million letters that goes nowhere. It's a counting problem. A palindrome of length L needs L // 2 matching pairs, and the middle letter of an odd length can be any letter at all. So total the pairs across every string and fill the shortest strings first. Spotting that quickly is most of the problem.
Take it further
Two more angles to rehearse. First, explain why shortest-first is safe: swapping a long string for a shorter one never costs more pairs. Second, consider a version where each string can only rearrange its own letters. Then each string stands alone, and it's a palindrome if at most one of its letters has an odd count, the same test the scatter palindrome below runs on substrings.

The third problem has the strongest record of the six. It closed the March 2026 set, and an August 2025 SWE II assessment used the same problem as its last question.

3

Shortest Team Covering Every Talent

MediumFrequently asked
Problem
A class lines up students in a row, and talent[i] is the talent of student i, an integer from 1 to talents_count. A quiz team must be a run of consecutive students that includes at least one student with each of the talents_count talents.

For every starting position, return the size of the smallest team that starts there. If no team starting at that position covers every talent, use -1. Both the row and the number of talents can reach 100,000.
Inputtalents_count = 3talent = [1, 2, 3, 2, 1]Output[3, 4, 3, -1, -1]

Index 0 needs only [1, 2, 3]. Starting at index 1 you need [2, 3, 2, 1], and index 2 gets by with [3, 2, 1]. The last two positions can never see talent 3 again.

How this uses the pattern

As the start moves right, the shortest valid end never moves left. Two pointers with a count per talent cover all n starts in one pass.

Write it here, or go full screen with the problem, hints and solution beside the editor.

Shortest Team Covering Every Talent

Loading...
Click "Run" to execute your code
The Expedia angle
Expedia used this on SWE II and SDE 2 assessments in August 2025 and March 2026, both times as question 3. The August candidate finished all three problems inside 30 minutes, so it's quick once the idea lands. The trap is a fresh scan from every start. It's quadratic, and at 100,000 students that's far too slow. The fix rests on one fact: the end pointer only ever moves forward. And if a talent never appears at all, every answer is -1, which the same loop handles with no special case.
Take it further
Practice extension: the smallest team anywhere in the row. That's the minimum over the non-negative answers, so you can reuse this function. The classic minimum window substring, the same two-pointer idea, is good next practice for live rounds.

Older problems (2020-2025)

None of these three has a firsthand report from the last twelve months, so treat them as practice rather than a preview. The first two appeared together on SDE assessments in April 2024 and April 2025, and the cipher showed up again in a March 2025 set. Both look easy, and both have cost people points on hidden tests. That makes them good drills for checking edge cases before you submit.

4

Simple Cipher

EasySometimes asked
Problem
A cipher is built on an alphabet wheel with the uppercase letters A to Z around it. To decrypt, replace each letter of encrypted with the letter k steps counter-clockwise on the wheel. Counter-clockwise from A comes Z.

Return the decrypted string. The string can hold up to 100,000 letters, and k can be as large as 100,000.
Inputencrypted = "VTAOG"k = 2Output"TRYME"

Two steps back from V is T, from T is R, and from A wraps around to Y.

How this uses the pattern

Map each letter to 0-25, subtract k modulo 26, and map back. Reduce k first so a huge k costs nothing.

Write it here, or go full screen with the problem, hints and solution beside the editor.

Simple Cipher

Loading...
Click "Run" to execute your code
The Expedia angle
Expedia used this on SDE assessments in April 2024, March 2025 and April 2025, usually as the second question. In 2024 a candidate said it "was not bad on paper" and still failed many hidden tests on the first try. The failures are nearly always wrap-around and size. Subtracting k without a modulo walks past A into punctuation, and a k bigger than 26 has to wrap more than once. Building the result with repeated string concatenation in some languages also slows down at 100,000 letters.
Take it further
Rehearse the variations an implementation-heavy OA can add. Encrypting is the same formula with + k. Mixed case means doing the arithmetic against 'a' or 'A' separately. Leaving spaces and digits untouched means a branch per character. Each is one line once the modulo is right.
5

Connected Groups

MediumSometimes asked
Problem
Relationships between n people are given as related, a list of n binary strings of length n. If related[i][j] is "1", person i knows person j, and everyone knows themselves.

Knowing is transitive. If 0 knows 2 and 2 knows 3, then 0 knows 3 through 2. A group is everyone connected this way, directly or through others. Return the number of groups, where n is at most 300.
Inputrelated = ["1100", "1110", "0110", "0001"]Output2

Person 0 knows 1 and 1 knows 2, so {0, 1, 2} is one group. Person 3 knows nobody else and forms the second.

How this uses the pattern

Treat people as nodes and each 1 as an edge. The answer is the number of connected components: start a search from every unvisited person, or union the pairs and count roots.

Write it here, or go full screen with the problem, hints and solution beside the editor.

Connected Groups

Loading...
Click "Run" to execute your code
The Expedia angle
This sat alongside the cipher on the April 2024 and April 2025 assessments. In 2024 a candidate described it as "similar to the island problem, but with caveats", where plain BFS passed the first few cases and many hidden ones failed. The likely caveats are reading each row as the list of people that person knows, which differs from a grid of land cells, and treating a link as two-way. At n = 300 the full scan is only 90,000 cells, so a clean search is fast enough.
Take it further
An edge-list version is the one to practice next. A July 2024 SDE 1 assessment had a social-connections problem where a candidate's DFS and BFS timed out and union-find was the intended fix. That statement wasn't shared, so practice the general form: n people and a list of friend pairs, count the groups. The walkthrough codes it.

Scatter palindrome is the oldest of the six. An SDE 2 take-home in December 2020 and an OA in August 2021 both used it as their hard problem, and a 2022 live round asked a version of it. A 2026 practice-site listing also tags it to an Expedia screen, but nobody has described meeting it in an Expedia OA since 2021. Practice it as a hard drill and don't expect to see it.

6

Scatter Palindrome

HardSometimes asked
Problem
A substring is a scatter palindrome if its letters can be rearranged into a palindrome. For each lowercase string in strings, count its non-empty contiguous substrings that are scatter palindromes.

Return the counts in input order. Substrings at different positions count separately, even when they hold the same letters. Aim for better than quadratic time, since long strings are where a slow count runs out of time.
Inputstrings = ["aabb"]Output[9]

The four single letters, "aa", "bb", "aab", "abb" and "aabb". "ab" fails because both letters appear an odd number of times.

How this uses the pattern

A substring qualifies when at most one letter has an odd count. Track the odd-even pattern of each prefix as a 26-bit mask: two prefixes bound a valid substring when their masks are equal or differ in one bit.

Write it here, or go full screen with the problem, hints and solution beside the editor.

Scatter Palindrome

Loading...
Click "Run" to execute your code
The Expedia angle
Older Expedia sets used this as the hard closer. A 2021 SDE 2 candidate called it "1 hard scatter palindrome" and a 2020 take-home paired it with two easy questions. The brute force checks every substring with a fresh count and is cubic. Counting incrementally from each start makes it quadratic, which is where most people stop. The prefix bitmask gets it to linear time with a factor of 26, and that's the version worth practicing.
Take it further
Practice extension: return the longest scatter palindrome substring. Store the first index where each mask appears instead of a count. For each prefix, check the same mask and its 26 one-bit neighbors, and take the largest index gap.

Common questions about the Expedia OA

Does Expedia use HackerRank?

Yes. Expedia's careers site has its own HackerRank page for the coding assessment, and candidates name HackerRank for both the OA and many live rounds. Some live rounds have used CoderPad instead.

How hard is the Expedia OA?

Mostly easy to medium, with a hard problem in some sets. The time is rarely the problem: several candidates finished in 30 to 40 minutes. Hidden tests are where the points go, so check the smallest input, the largest one and any wrap-around before you submit.

What does Reddit say about the Expedia online assessment?

Reddit threads from late 2025 and 2026 mostly cover early careers. They describe the strengths-based assessment first, then the HackerRank test anywhere from two days to about two weeks later. Commenters in 2025 said the camera and screen were recorded. One intern lost points on hidden cases on two of three problems, and another finished in 30 of the 90 minutes. Silence after a strong score is a theme on LeetCode and Glassdoor too.

Can you use AI on the Expedia OA?

No, unless the assessment tells you it's allowed. Expedia's candidate AI policy is fine with AI for research and practice but asks you not to let it complete a coding assessment for you. Its assessments flag "signs of automated or copied answers", and a person reviews the result. For the full loop after the OA, see the Expedia interview process.

Key Takeaways

  • ✓The Expedia OA is a HackerRank test of about 90 minutes: usually three problems for experienced hires, two or three for interns.
  • ✓Hidden tests decide the score. Check overflow, wrap-around and the largest input before submitting.
  • ✓The March 2026 SDE 2 set asked for a running-minimum discount, palindromes after swaps and two-pointer talent teams.
  • ✓Two 2026 reports add a prompt-engineering and an implementation question, so read your invite closely.
Expedia interview guide

Know what Expedia asks before you walk in.

39 coding · 6 system design · 23 behavioral questions

Get Premium$49 a year · Instant access
Or start freeNo card.

Get their questions first.

What Expedia Tests in CodingHad your Expedia interview?How we research

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.