Skip to main content

Practice ยท 2 of 4

Running balance

CHALLENGE
Difficulty: beginner+25 XP

Implement static List<decimal> RunningBalance(List<Transaction> ledger) โ€” the balance after each transaction in order (income adds, expense subtracts). Empty ledger โ†’ empty list.

Back to lesson: Practice: Capstone workshop