Skip to content

Instantly share code, notes, and snippets.

@AppleCEO
Created January 14, 2020 14:27
func solution(_ arr:[Int]) -> Double {
return Double(arr.reduce(0) { (result, number) -> Int in
result + number
})/Double(arr.count)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment