Number which occurs max frequency in a set of numbers is
Answers
Answered by
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
0
Answer:
numbers which occurs max frequency in a set of numbers is mode
Similar questions
History,
27 days ago
Physics,
27 days ago
Environmental Sciences,
1 month ago
Art,
1 month ago
Math,
9 months ago