DanielsRUS / Publications
Forum
Most frequent range of numbers in an array.
Hi, I am totally new to programming and forgive me for my ignorance. But I'm looking for code that can show me the most frequent range of numbers in an array. Lets say there is an array with these values { 1 ,2 ,2 ,5 ,8 ,8 ,9 ,10} and the range is +-1.. most frequent range of numbers would be 8-10