InterviewLegend

DP: Sufficient Teams, Scramble String & Stock Trades

Alex Chen50 min readGuide updated

Most Expedia coding rounds lean on arrays, intervals and graphs, but dynamic programming keeps turning up. The clearest case is an SDE III loop in Gurgaon in August 2026. The coding round there had two hard DP problems, a Premium question and scramble string, and the candidate finished both in 35 minutes before the talk moved to the interviewer's own project. That candidate got an offer.

It isn't only senior loops. An SDE II candidate in March 2026 met the stock problem with at most k transactions in round two. Unnamed DP problems come up in 2025 and 2026 interview reviews too. An ML intern in Bengaluru in August 2026 called the round "hard DP" plus two pointers. An intern in Gurgaon in September 2025 got a DP problem and was asked to derive its time complexity from scratch. This lesson works the three named problems, then a backtracking problem from an early 2026 technical screen that rewards the same pruning instinct.

The Expedia angle
Speed matters in India SDE III rounds. Two hards in 35 minutes is the pace one 2026 offer came with, and a March 2026 India SDE III screen ended in rejection after a brute force on the second problem. Know the state for each problem cold, so the minutes go into code and tests.

ExpediaPremium lesson · Coding round

The 4 Expedia problems are below.

  1. A Premium questionCoding · Hard
  2. A Premium questionCoding · Hard
  3. A Premium questionCoding · Hard

+ 1 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.