Back to problems

Merchant Fraud Score

Algorithm · Stripe · Medium

Requirements Inputs: transactions = ["store7,760,buyer4,22",...] — every entry provides a merchant identifier, an amount, a customer identifier, and a time value. rules = ["1200,3,6,9",...] — each rule specifies a cutoff together with additive score values (for example, +3, +6, and +9) selected according to a transaction attribute. merchants = ["store7,35",...] — each merchant starts with its listed base score. Implement: Output: ["store7,65",...] — return each merchant's…

Checking your access…