InterviewLegend

Sliding Window Maximum, Stacks & Heaps

Alex Chen50 min readGuide updated

Window, stack and heap problems run through recent Expedia rounds, mostly SDE III screens. Sliding window maximum leads because it keeps coming back. A March 2026 SDE III candidate wrote a brute force that cleared 12 of 15 tests before timing out. The interviewer hinted at a deque, the candidate couldn't get there, and the screen ended in a rejection.

The other five come from 2025 and 2026 reports, newest and most repeated first. Two came up in the same March 2026 screens as the window problem. Two are from secondhand 2026 summaries that name the problem and little else, so those are framed as something like what was asked. The last is an easy stack problem from a December 2025 eliminator.

The Expedia angle
The brute force is a fail here. Expedia's live rounds run your code against test cases, and the slow version times out on the big ones. Say the linear or log-linear approach before you type, and write that one.

ExpediaPremium lesson · Coding round

The 6 Expedia problems are below.

  1. A Premium questionCoding · Hard · Signature problem
  2. A Premium questionCoding · Medium
  3. A Premium questionCoding · Hard

+ 3 more in this lesson

Each with hints, the follow-up and a tested solution.

Get the Expedia questions

$49 a year · all 122 companies · instant access

21,000+ candidate reports

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.

Had your Expedia interview?How we research

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