Skip to content

Commit 181d1d5

Browse files
authored
Update Exercise in Summing.js
1 parent 7a743ca commit 181d1d5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

6-kyu-part1/Exercise in Summing.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ if values is empty, both functions should return 0
1414
if n is 0, both functions should also return 0
1515
if n is larger than values's length, use the length instead.
1616
*/
17+
1718
function minimumSum(values, n) {
1819
values = values.sort((a, b) => a - b);
1920
return values.slice(0, n).reduce((a, b) => a + b, 0);

0 commit comments

Comments
 (0)