InterviewLegend

Parsing and Formatting Text

Alex Chen55 min readUpdated 44 real interview reports

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.

  1. A Premium questionCoding · Easy · Frequently asked
  2. A Premium questionCoding · Hard
  3. 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.

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.