Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 223 Bytes

Sum of positive.md

File metadata and controls

7 lines (4 loc) · 223 Bytes

You get an array of numbers, return the sum of all of the positives ones.

Example [1,-4,7,12] => 1 + 7 + 12 = 20

Note: array may be empty, in this case return 0.

solution