Open jawayang opened 8 years ago
You get an array of numbers, return the sum of all of the positives ones.
Example [1,-4,7,12] => 1 + 7 + 12 = 20
你有一個數字陣列,回傳所有正數的和。 例子: [1,-4,7,12] => 1 + 7 + 12 = 20
http://www.codewars.com/kata/sum-of-positive
@raytong82
@raytong82 可否提供這個題目的連結,謝謝。
http://www.codewars.com/kata/sum-of-positive 幫補充題目連結
PASS
Pass
題目:
You get an array of numbers, return the sum of all of the positives ones.
Example [1,-4,7,12] => 1 + 7 + 12 = 20
翻譯:
你有一個數字陣列,回傳所有正數的和。 例子: [1,-4,7,12] => 1 + 7 + 12 = 20
http://www.codewars.com/kata/sum-of-positive
@raytong82