Optimal Blue Interview Question

Write a method that takes an integer array and returns the sum of all even integers.

Interview Answer

Anonymous

Oct 20, 2015

I wrote a C# method that conditionally (modulus) summed the values together into a variable, and returned the variable. A lambda expression could also work.

2