InterviewDB Question · USA

Arbitrage System: Detect Arbitrage Opportunities in a Currency Exchange Graph

Question Details

Problem Given a matrix of exchange rates between n currencies, detect whether an arbitrage opportunity exists — i.e., a cycle of exchanges starting and ending at the same currency that results in a profit. Example Follow-ups What graph algorithm detects this? Why does taking log of rates convert this to shortest-path? What is the time complexity of your approach for n currencies? In practice, bid/ask spreads and transaction fees eat into arbitrage. How do you model them? How would you handle rat…

Full Details

🔒

Unlock all Jane Street questions

Full insider details, leaked discussions, and candidate experiences.

Get full access — $100 a year, unlimited access

About This Question

This is a reported interview question from a jane street interview during the onsite round.

It covers the following topics: Coding, Graph, Onsite, Matrix .