UPI Transaction Sum
UPI Transaction Sum
EasyArrays100% accepted
Arjun is building a UPI dashboard for Paytm users. Given a list of transaction amounts for the day, he needs to find the total amount transferred and the maximum single transaction.
Approach
Given N transaction amounts, output the total sum and the maximum transaction value.
Input
19
8279 3146 9626 9762 671 1718 6048 43 6022 5725 4884 8030 6977 1289 7121 9156 998 6362 8403
Output
104260 9762
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