Start with an integer balance in cents and apply each signed transaction in order. Return the balance after each transaction, excluding the initial balance. Negative balances are allowed; an empty transaction list returns [].
Difficulty: beginner
Examples
[100,[50,-30,-140]] → [150,120,-20]
Your solution
Python
Results
Python starts when you run or submit this challenge.
Optional website statistics, Google Analytics/Clarity and advertising (Meta/Google) help measure and support this free site. Your choice does not limit learning. Privacy policy.
These services may use cookies and receive browsing and device information. Change your choice later from the Privacy Policy page.