Hi,
I'm having problems with week 3 exercise 67.
I am getting a 50% successful on this exercise. Tes 1 and 2 pass, but test 3 and 4 fail. I have checked the variance of the list of numbers ([1,3] and [2,9,1,3,5]) that are failing, but my code returns the correct variance number. SO I am not sure what is going on.
"The method should be called only once!
When variance was called with
list [1,3] java.lang.AssertionError:
Unexpected method call
Variance.average([1, 3]):
Variance.average([1, 3]): expected: 1,
actual: 2"
"The method should be called only once!
When variance was called with
list [2,9,1,3,5] java.lang.AssertionError:
Unexpected method call
Variance.average([2, 9, 1, 3, 5]):
Variance.average([2, 9, 1, 3, 5]):
expected: 1, actual: 2"
Best regards,
gmy5011