8 kyu

Calculate average

1,260 of 175,994wichu

Description:

Write a function which calculates the average of the numbers in a given array.

Note: Empty arrays should return 0.

Fundamentals
Arrays

Stats:

CreatedAug 3, 2016
PublishedAug 3, 2016
Warriors Trained234287
Total Skips14454
Total Code Submissions504694
Total Times Completed175994
Haskell Completions1260
F# Completions346
Python Completions60110
C Completions4700
C# Completions10016
JavaScript Completions63078
PHP Completions4784
Clojure Completions623
Crystal Completions57
Java Completions17955
TypeScript Completions2949
C++ Completions11979
NASM Completions50
Rust Completions2112
Julia Completions92
CoffeeScript Completions24
R Completions291
Scala Completions115
Lua Completions107
Ruby Completions171
Total Stars857
% of votes with a positive feedback rating90% of 11101
Total "Very Satisfied" Votes9186
Total "Somewhat Satisfied" Votes1654
Total "Not Satisfied" Votes261
Total Rank Assessments8
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • wichu Avatar
  • bradcypert Avatar
  • GiacomoSorbi Avatar
  • suic Avatar
  • donaldsebleung Avatar
  • SC0d3r Avatar
  • Chrono79 Avatar
  • Wittybit Avatar
  • imjasonmiller Avatar
  • kazk Avatar
  • JohanWiltink Avatar
  • lukesalamone Avatar
  • Blind4Basics Avatar
  • georgereason Avatar
  • Voile Avatar
  • DasBrain Avatar
  • Souzooka Avatar
  • user8654865 Avatar
  • MrZizoScream Avatar
  • rowcased Avatar
  • FArekkusu Avatar
  • hobovsky Avatar
  • solitude Avatar
  • trashy_incel Avatar
  • username0 Avatar
  • ejini战神 Avatar
  • akar-0 Avatar
  • tobeannouncd Avatar
  • alanparmenter Avatar
  • KayleighWasTaken Avatar
  • metatable Avatar
  • CupCakeCat14 Avatar
  • PetitLu117 Avatar
Ad