IMC TradingSoftware EngineerSoftware DeveloperQuestion #16

In a 2D array of integers, adjacent positions (vertically or horizontally) are considered part of the same "country" if they contain the same integer. Given a 2D array of integers, compute the number of distinct countries in the array.

Unlock the Full Solution

Enter your email to get the detailed step-by-step solution to this IMC Trading interview question, plus access to free interview prep resources.

We'll also send you a free HFT mock interview video.

Get All 94+ IMC Trading Questions with Solutions

Plus 16+ hours of video lectures, resume tailoring, and 1:1 mentorship from quants.

Schedule a Call