Learn C, C++ Concepts
the computeMode function is not correct. The definition of the mode of a set of numbers is the number that occurs the most. I am not sure where the author's definition of a mode used in the program comes from.
We will check the code and will update as accordingly needed.Thanks for sharing.