Math, asked by opgamer1403, 1 month ago

Number which occurs max frequency in a set of numbers is​

Answers

Answered by manishajadhav7626
0

Step-by-step explanation:

Given an array, find the most frequent element in it. If there are multiple elements that appear maximum number of times, print any one of them.

Examples:

Input : arr[] = {1, 3, 2, 1, 4, 1}

Output : 1

1 appears three times in array which

is maximum frequency.

Input : arr[] = {10, 20, 10, 20, 30, 20, 20}

Output : 20

Answered by trishnapaul1985
0

Answer:

numbers which occurs max frequency in a set of numbers is mode

Similar questions