Something of the type EncontraModa (Dataset, N_Mores_Modas)?
I'm working with the following integers: c (1,2,3,4,5,6,7,7,7,8,8,9,9,9,9,9)
That is, the example is trimodal and has a larger fashion than the other two.
The ideal would be perhaps to create a function that puts all integers and order and subtracts the next one from the previous one, when it gives the sum to a fashionable N variable and then compare those N fashionable variables? I'm trying to develop the code for this but I still can not.