Want quant roles sent to your inbox?

Get quant job listings, interview prep resources, and industry news delivered to you for free.

No spam. Unsubscribe anytime.

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

Academy 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.