NubankSoftware Engineer · OnsiteCodemia practiceAnswer As-Of Balance Queries Over an Immutable Ledger
Given an append-only list of ledger entries (transaction time, account, signed amount in cents) in any order, build a structure that answers balance_as_of(account, t), the account balance including all entries with transaction time at or before t.
Medium
Coding & Algorithms