7 kyu
Mean Means
745 of 1,254tibor_r
Description:
Introduction
Take a list of n
numbers a1, a2, a3, ..., aN
to start with.
Arithmetic mean (or average) is the sum of these numbers divided by n
.
Geometric mean (or average) is the product of these numbers taken to the n
th root.
Example
List of numbers: 1, 3, 9, 27, 81
n = 5
- Arithmetic mean =
(1 + 3 + 9 + 27 + 81) / 5 = 121 / 5 = 24.2
- Geometric mean =
(1 * 3 * 9 * 27 * 81) ^ (1/5) = 59049 ^ (1/5) = 9
Task
You will be given a list of numbers and their arithmetic mean. However, the list is missing one number. Using this information, you must figure out and return the geometric mean of the FULL LIST, including the number that's missing.
Mathematics
Algorithms
Algebra
Similar Kata:
Stats:
Created | Aug 31, 2016 |
Published | Aug 31, 2016 |
Warriors Trained | 2767 |
Total Skips | 136 |
Total Code Submissions | 5001 |
Total Times Completed | 1254 |
Python Completions | 745 |
JavaScript Completions | 438 |
C# Completions | 115 |
Total Stars | 29 |
% of votes with a positive feedback rating | 87% of 307 |
Total "Very Satisfied" Votes | 243 |
Total "Somewhat Satisfied" Votes | 49 |
Total "Not Satisfied" Votes | 15 |
Total Rank Assessments | 116 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 1 kyu |
Lowest Assessed Rank | 8 kyu |