Computer Science, asked by NehaKashyap90, 1 year ago

Write a program which take numbers 1 to 20 as input. 50 numbers are taken as input. You need to output the number appears the most number of times. Assume unique answer to above problem.

Answers

Answered by Anonymous
2

Hey mate....

here's the answer....

Create a temporary array of size (k-1) to store elements and their counts (The output elements are going to be among these k-1 elements). Following is structure of temporary array elements.

Hope this helps❤️

Answered by Anonymous
1

Explanation:

Heya mate.....

create a temporary array of size to store elements and their counts assume unique number to every problem

Similar questions