Stack Problems
Stack questions have turned up on IMC's HackerRank assessment since at least 2020. Each version adds an awkward call to a plain push and pop, and later versions ask for more than one.
Each of these is easy to get right slowly. A loop inside the update passes the samples, and then the hidden tests send 200,000 calls and it runs out of time. So decide what you keep beside the stack before you write the class. Try the slow version on paper first, then look for what you can keep current as each call comes in.
The third problem uses a stack inside the algorithm, settling a whole run of events in one pass. If you want a plain O(1) warm-up first, Design & CS Fundamentals has one.
IMC TradingPremium lesson · Coding round
The 3 IMC Trading problems are below.
- A Premium questionCoding · Medium · Signature problem
- A Premium questionCoding · Hard
- A Premium questionCoding · Medium
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.
IMC Trading interview guideKnow what IMC Trading asks before you walk in.
26 coding · 1 system design · 34 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.