Back to problems

Detect Fraudulent Transactions

Algorithm · Bloomberg · Medium

You are given a list of financial transactions. Each record contains the account holder’s name, a monetary amount (a non‑negative integer), a location identifier, and a timestamp in 24‑hour HH:MM format; all timestamps belong to the same calendar day. A transaction is considered fraudulent if it meets either of the following conditions: Its amount is strictly greater than 2000. There exist two transactions of the same account holder that satisfy both: they occurred in…

Checking your access…