Not sure what to study next?

Get a personalised quant interview roadmap built around your upcoming interviews, strengths and weaknesses.

Takes a few minutes. Start with your target role and firms.

Brainteaser

I-Spy

Work through the prompt below, check your answer, and reveal the full solution when you're ready.

Brainteaser
Difficulty: Medium
← Back
Question

I-Spy

There is a spy moving on the integer number line. At time \(t=0\), the spy starts at some unknown integer position \(A\). At each later integer time \(t=1,2,3,\dots\), the spy moves by a fixed unknown integer amount \(B\). So at time \(t\), the spy is at \[ A+tB. \] At each time \(t\), you are allowed to guess exactly one integer location and ask whether the spy is there at that moment. You get only a yes/no answer. The task is to give a strategy that is guaranteed to catch the spy eventually, no matter what integers \(A\) and \(B\) are.

Join our Newsletter and Receive the Latest Updates!

Main Links

Trade Courses Assessments Interview Prep Contact Us

Social Media

Facebook Instagram YouTube

Legal

Terms and Conditions Privacy Policy Privacy settings

Talent Acquisition

Looking to hire exceptional quant talent?
See how we can help.

© 2026 EverythingQuant. All Rights Reserved.