Step-by-Step Simulations
A simulation problem gives you a set of rules and asks you to step a small world forward, one tick at a time, until something happens. At Hudson River Trading these come up at more than one stage. Two of the three problems below come from the 30-minute technical screen, where the interviewer reads the rules aloud in CoderPad and you don't get any test cases. The third came at the end of a CodeSignal assessment for interns.
The code is usually short, so most bugs come from a rule you heard slightly wrong. Before you write the loop, write down what happens inside a single tick and in what order, then repeat it back to the interviewer. Ask about ties and ordering now, while changing your plan is still cheap.
Then look for the quiet stretches. In two of these problems the state sits idle for long gaps between events. Once a first version runs, a question about jumping over those gaps tends to follow, so keep it in mind from the start. Machine Coding covered building small components. Here the components are tiny, and the work is getting every rule exactly right.
Hudson River TradingPremium lesson · Coding round
The 3 Hudson River Trading problems are below.
- A Premium questionCoding · Medium · Signature problem
- A Premium questionCoding · Medium · Frequently asked
- A Premium questionCoding · Medium
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.
Hudson River Trading interview guideKnow what Hudson River Trading asks before you walk in.
27 coding · 1 system design · 16 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.