Find the sum of all even numbers in an array.
MediumProblem Statement
Find the sum of all even numbers in an array.
Sample Input
[1, 2, 3, 4, 5, 6]
Sample Output
12
Limits
Time: 2s · Memory: 256 MB
Find the sum of all even numbers in an array.
[1, 2, 3, 4, 5, 6]
12
Time: 2s · Memory: 256 MB