Loading lesson…
Level 1 · Apprentice0 XP
The 500-year-old idea at the heart of every bank and wallet.
Step 1 / 6
ProblemAn app stores a balance field and updates it with each payment. A bug double-applies one update; nobody can tell what the balance should be.
← → step
Before this: Representing money in code
🛠️ Your turn
Reading is not the skill, doing is. Try for ten minutes before you open the hint. Getting stuck first is what makes the solution stick.
1.Extend the ledger with a reversal function, balances at a given date, and a PostgreSQL schema where an entries table plus a check (or trigger) guarantees every transaction sums to zero.