Metro Smart Card Minimum Balance Alert
Metro Smart Card Minimum Balance Alert
EasyArrays0% accepted
Ravi uses a Mumbai metro smart card with initial balance ₹1000. Each journey deducts fares (50, 45, 60, 55) rupees. To plan recharges, he tracks the minimum balance reached throughout the month.
Approach
Given an array of N fare deductions and starting balance 1000, find the minimum balance point after all deductions.
Input
5
50 45 60 55 30
Output
760
More Arrays problems
Browse all coding problems →solution.py
Loading editor...
Test 1
Test 2
Test 3
Press Run to test your custom input, or Submit to judge against all test cases.
Sign in to continue
Create a free account to run code, submit solutions and track progress.
- Free forever — no credit card
- 10+ languages with live execution
- Points, streaks & leaderboards