7 kyu
Sum of two lowest positive integers
102,394 of 239,057emporio
Description:
Create a function that returns the sum of the two lowest positive numbers given an array of minimum 4 positive integers. No floats or non-positive integers will be passed.
For example, when an array is passed like [19, 5, 42, 2, 77]
, the output should be 7
.
[10, 343445353, 3453445, 3453545353453]
should return 3453455
.
Arrays
Fundamentals
Similar Kata:
Stats:
Created | Jun 28, 2015 |
Published | Jun 28, 2015 |
Warriors Trained | 345310 |
Total Skips | 26506 |
Total Code Submissions | 606251 |
Total Times Completed | 239057 |
JavaScript Completions | 94901 |
Ruby Completions | 7691 |
Python Completions | 102394 |
C# Completions | 15299 |
C++ Completions | 10641 |
F# Completions | 280 |
Elixir Completions | 652 |
Swift Completions | 2958 |
Julia Completions | 159 |
Scala Completions | 722 |
C Completions | 2418 |
R Completions | 214 |
Crystal Completions | 17 |
Lua Completions | 208 |
Rust Completions | 408 |
Java Completions | 2530 |
TypeScript Completions | 856 |
CoffeeScript Completions | 9 |
Haskell Completions | 107 |
Total Stars | 1672 |
% of votes with a positive feedback rating | 89% of 17213 |
Total "Very Satisfied" Votes | 13747 |
Total "Somewhat Satisfied" Votes | 3075 |
Total "Not Satisfied" Votes | 391 |