The Expedia Online Assessment (HackerRank)
- 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.
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.
import sysdef 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.
Discount by Lowest Earlier Price
Problem
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.
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.
Keep one running value, the lowest price seen so far. Charge each item against it, then update it.
Discount by Lowest Earlier Price
Click "Run" to execute your code
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.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.
Maximum Palindromes After Swaps
Problem
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.Swaps can make "paap", "sas" and "ssss". "df" has two different letters and nothing left to pair with, so 3 is the best.
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.
Maximum Palindromes After Swaps
Click "Run" to execute your code
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.
Shortest Team Covering Every Talent
Problem
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.
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.
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.
Shortest Team Covering Every Talent
Click "Run" to execute your code
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.
Simple Cipher
Problem
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.Two steps back from V is T, from T is R, and from A wraps around to Y.
Map each letter to 0-25, subtract k modulo 26, and map back. Reduce k first so a huge k costs nothing.
Simple Cipher
Click "Run" to execute your code
Connected Groups
Problem
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.
Person 0 knows 1 and 1 knows 2, so {0, 1, 2} is one group. Person 3 knows nobody else and forms the second.
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.
Connected Groups
Click "Run" to execute your code
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.
Scatter Palindrome
Problem
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.
The four single letters, "aa", "bb", "aab", "abb" and "aabb". "ab" fails because both letters appear an odd number of times.
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.
Scatter Palindrome
Click "Run" to execute your code
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 guideKnow what Expedia asks before you walk in.
39 coding · 6 system design · 23 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.