2016-3: Statistics - Mode

Write code that takes a numeric vector or scalar as its argument and returns the mode (that is, the most common value) of the array. If more than one number occurs the greatest number of times, return all such numbers.

Examples

Implementation

You can also run the tests via ⌘/shift + enter