Find the sum of all positive numbers in a list.
MediumProblem Statement
Find the sum of all positive numbers in a list.
Sample Input
[-1, 2, 3, -4, 5]
Sample Output
10
Limits
Time: 2s · Memory: 256 MB
Find the sum of all positive numbers in a list.
[-1, 2, 3, -4, 5]
10
Time: 2s · Memory: 256 MB