Build Running Account Balances

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.

Back to Lesson