N26Software Engineer · Technical ScreenCodemia practiceFlag Duplicate Card Authorizations Within a Time Window
Given card authorizations as (auth_id, timestamp, card_id, merchant_id, amount_cents) in any order, return the ids of authorizations that repeat the same card, merchant and amount within W seconds of the last accepted one with that key. Flagged authorizations do not reset the window.
Medium
Coding & Algorithms