Cody

Problem 2687. Find the mode of the given input

Created by Pritesh Shah in Community

Find the statistical mode of the given input.

Example:

If X is matrix given below

              [ 3     3     1     4;
                0     0     1     1;
                0     1     2     4]

Then mode must be 1 because it appears the most times.

Assume that mode will be unique for given test case.

Solution Stats

59.55% Correct | 40.45% Incorrect
Last solution submitted on Dec 20, 2018