Design a basic bank account system supporting deposit, withdrawal, and transfer operations. Include overdraft protection, transaction history, and balance tracking.
Suggested time: 45 minutes
Loading the workspace...
A bank account system sounds like a simple balance tracker: deposit adds, withdrawal subtracts. But underneath, the system must guarantee that concurrent operations from multiple ATMs never produce overdrafts, that transfers between accounts are atomic (both succeed or neither takes effect), that every operation creates an immutable audit record, and that different account types (checking, savings) enforce different rules through polymorphism. The design challenge is building a thread-safe financial system where money is never created or destroyed by race conditions.
Deposit, Withdraw, and Transfer
Accurate Balance and Overdraft Prevention
Transaction History
Multiple Account Types
Design a Banking System (medium)
Design a Voting Booth System (medium)
Design an ATM (medium)
Design a Vending Machine (easy)
Design a Shape Calculator (easy)