8 kyu

Get the mean of an array

42,946 of 88,731AzariasB

Description:

It's the academic year's end, fateful moment of your school report. The averages must be calculated. All the students come to you and entreat you to calculate their average for them. Easy ! You just need to write a script.

Return the average of the given array rounded down to its nearest integer.

The array will never be empty.

Arrays
Algorithms

More By Author:

Check out these other kata created by AzariasB

Stats:

CreatedNov 7, 2015
PublishedNov 7, 2015
Warriors Trained109161
Total Skips3597
Total Code Submissions190598
Total Times Completed88731
JavaScript Completions42946
Ruby Completions2145
C# Completions4137
CoffeeScript Completions50
Haskell Completions789
Python Completions20190
Elixir Completions302
C Completions1888
TypeScript Completions1004
PHP Completions2091
Java Completions7927
C++ Completions5699
Lua Completions206
Julia Completions75
Crystal Completions23
Dart Completions733
Clojure Completions220
Racket Completions49
Factor Completions18
Rust Completions717
NASM Completions29
Prolog Completions37
Swift Completions1148
R Completions95
OCaml Completions59
Scala Completions36
Total Stars593
% of votes with a positive feedback rating92% of 6961
Total "Very Satisfied" Votes6029
Total "Somewhat Satisfied" Votes818
Total "Not Satisfied" Votes114
Ad
Contributors
  • AzariasB Avatar
  • OverZealous Avatar
  • cris Avatar
  • CrazyMerlyn Avatar
  • Jotha Avatar
  • suic Avatar
  • jetjake Avatar
  • donaldsebleung Avatar
  • Chrono79 Avatar
  • imjasonmiller Avatar
  • kazk Avatar
  • user5036852 Avatar
  • ehpc Avatar
  • lilsweetcaligula Avatar
  • barakplasma Avatar
  • Voile Avatar
  • mitron6 Avatar
  • achtlos Avatar
  • Mooaholic Avatar
  • monadius Avatar
  • hobovsky Avatar
  • stellartux Avatar
  • user8436785 Avatar
  • ejini战神 Avatar
  • esehara Avatar
  • pastre Avatar
  • Kacarott Avatar
  • KayleighWasTaken Avatar
Ad