Parsing and Formatting Text
Parsing and formatting problems give you rules that fill a paragraph and code that fits on one screen. Simulation and parsing is the problem type HRT comes back to most often, and the comment-length counter in The Online Assessment is one example. The five problems here push the same skill further.
Two are warm-ups that take away the usual shortcut, so you write by hand what a library call would normally do. The other three give you a small grammar or rule set and ask you to follow it. None of them needs a clever algorithm. The points go to the small rules, like a range boundary or the smallest 32-bit integer.
Before you submit, type each worked example in as a test of your own. On the online assessment you see only a few cases, and a small misread can pass every one of them and still fail the hidden tests.
Hudson River TradingPremium lesson · Coding round
The 5 Hudson River Trading problems are below.
- A Premium questionCoding · Easy · Frequently asked
- A Premium questionCoding · Hard
- A Premium questionCoding · Easy
+ 2 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.
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.