Calculate Stats

Your task is to process a sequence of integer numbers to determine the following statistics:

For example: [6, 9, 15, -2, 92, 11]

If you try to calculate the statistics of an empty sequence, it should throw an exception or otherwise return immediately with the message “sequence is empty”.


This kata is described on

Referenced in these Learning Hours: