Created
December 11, 2017 10:31
-
-
Save Asatelit/d62254ceed4f7d74e2d8895763d73a67 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Solution for HackerRank > Algorithms > Warmup > Simple Array Sum | |
https://www.hackerrank.com/challenges/simple-array-sum/ | |
*/ | |
(function solve(n, ar) { | |
return ar.reduce((a, b) => a + b); | |
})(6, [1, 2, 3, 4, 10, 11]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment