Find The Mode
Finding the mode of a few numbers isn't too hard, but if you have a very long list, you'll probably need some code!
To find the mode, you use the following:
1 2 3 4 5 6 7 8 9 10 11 12
For this approach to be successful, which of the following must be true about your array?
I. It is sorted.
II. It is unimodal.
- The mode is defined as the element which appears most often in a set. If more than one element appears most often, the mode is that set of elements which appear most often.