IMC TradingSoftware Engineer InternSoftware Engineering InternQuestion #92

1) Given a chessboard size, a knight's starting position, an end position, and a bishop's position, find the minimum number of moves required for the knight to reach the end position. The knight cannot move to any square that the bishop is attacking, unless it captures the bishop on that square. 2) Implement a stack with the following functions: pop, push, inc, isEmpty, and peek. The inc function should increase the first n elements of the stack by a value i.

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