InterviewLegend

Simulation and Array Problems

Alex Chen60 min readUpdated

IMC's HackerRank tasks often describe a process one step at a time. The two-queue lane in The Online Assessment belongs to the same family.

Two of the five here can be run as written. They're bookkeeping, and the hidden tests check the edge rules, like whether an end minute still counts as busy. Trace the first example by hand before you code.

The other three time out if you follow the story literally. Each needs a structure or a trick that skips the repeated work, such as a union-find that jumps ahead, a difference array rebuilt at the end, or a cap on every value.

IMC TradingPremium lesson · Coding round

The 5 IMC Trading problems are below.

  1. A Premium questionCoding · Medium
  2. A Premium questionCoding · Medium
  3. A Premium questionCoding · Medium

+ 2 more in this lesson

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

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

Know what IMC Trading asks before you walk in.

26 coding · 1 system design · 34 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.