Calculate Total Balance

Medium

📝 Description

Given a list of transactions, compute the total balance.

Input Format

[100, -50, 200]

Output Format

250

Constraints

Number of transactions ≤ 10^5

🔍 Sample Input

[100, -50, 200]
            

✅ Sample Output

250
            

Code Editor

Please login to run and submit code.

Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run