Y
Hacker News
new
|
ask
|
show
|
jobs
by
CDRdude
2649 days ago
It doesn’t compute the average. Consider this test case: [0,0,0,0,0,0,4]. Your snippet would return an average of 2.