InterviewLegend

Building Your Own Containers

Alex Chen50 min readUpdated 44 real interview reports

Design problems at HRT give you a list of operations to support and a query count near 10^5. Any call that walks the whole container will time out on the hidden tests. The visible tests won't catch it. They still pass, so a clean sample run doesn't tell you much about whether your design holds up at full size.

The four problems below come from the online assessment and the phone screens, plus one onsite format where you extend a working C++ trading codebase. Most of the time there goes into reading code you didn't write. That part is slow. One problem here practices the same skill at a smaller scale.

Two of the problems take a list of queries and return the answers. The other two take a list of method calls and record what each one returns. If you worked through Machine Coding, the same approach applies. Name the state first, then decide which operation has to stay cheap, and pick a structure that keeps it cheap.

Hudson River TradingPremium lesson · Coding round

The 4 Hudson River Trading problems are below.

  1. A Premium questionCoding · Medium · Frequently asked
  2. A Premium questionCoding · Medium
  3. A Premium questionCoding · Hard

+ 1 more in this lesson

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

Get the Hudson River Trading questions

$49 a year · all 100 companies · cancel anytime

From 20,000+ candidate reports, forum threads behind logins and write-ups in Chinese.

Had your Hudson River Trading interview?Tell us what they asked. Reviewed before it goes in, never with your name.
Hudson River Trading interview guide

Know what Hudson River Trading asks before you walk in.

27 coding · 1 system design · 16 behavioral questions

Get Premium$49 a year · Cancel anytime
Or start freeNo card.

Get their questions first.

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