Back to problems

Bank Transaction Mining

Algorithm · Point72 · Easy

You are provided with two row-based datasets describing bank accounts and transfers. Every field in both datasets is represented as a string. accounts contains rows of the form [accountNumber, balance]. transactions contains rows of the form [transactionId, fromAccountNumber, toAccountNumber, transferAmount]. Balances and transfer amounts are non-negative integers written as decimal strings. A transaction qualifies as valid only when each of these conditions is satisfied:…

Checking your access…