InterviewLegend

Stack Machines and Parsers

Alex Chen60 min readUpdated

A small stack machine is one of Jump's longest-running online test problems, first on Codility and then on the tools that replaced it. It looks like a warm-up. Then the hidden tests feed it bad input, and every one of those cases has to be caught.

The other problems here need the same habit. You make one pass over the input and check for every bad case along the way. They come from live rounds and C++ tests, and the newest one parses a small spec and lists everything it allows.

Before you write the loop, list the bad inputs you can think of and give each one a test of its own. Some formats change between versions of the task, so ask for the exact format on the day.

Jump TradingPremium lesson · Coding round

The 4 Jump Trading problems are below.

  1. A Premium questionCoding · Easy · Signature problem
  2. A Premium questionCoding · Medium
  3. A Premium questionCoding · Medium

+ 1 more in this lesson

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

Get the Jump 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 Jump Trading interview?Tell us what they asked. Reviewed before it goes in, never with your name.
Jump Trading interview guide

Know what Jump Trading asks before you walk in.

28 coding · 1 system design · 15 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.