Practice problem

Money Transfer

Medium RevolutAgent round2 stages45 minPython

A service moves money in pounds between personal accounts. You implement the accounts and the transfer, which keeps every amount exact and refuses a bad transfer, such as one for more than the source holds, without changing any balance. The second stage has many threads transferring between the same accounts at once, with no money lost, made up or stuck. Candidates report it from Revolut's live coding rounds, often the second technical interview.

The stages

Each stage opens once the tests for the one before it pass, and each raises the bar, the way an interviewer does in the room.

  1. Transfers.
  2. Many threads. Many threads transfer between the same accounts at once, and no money may be lost, made up or stuck.

The round: an agent in the editor

The assistant here works like the one in the interview IDE. It reads your files, runs code and proposes changes, and you accept or reject each one. It doesn't volunteer ideas, so what gets built is what you asked for. Along the way the interviewer asks about your decisions, and at the end the report says what you checked and what you accepted unread.

More like it: every practice problem, how Revolut runs its AI round, the AI coding interview guide.