Math, asked by ashu7867, 9 months ago

Question 3
Numbers Group
You are given N integers an, where 1 SiS N. Let the number of repetitions of each integer in the array be ti.
, among the other numbers comes first, then the number with the next maximum t'i and so on. If there are two numbers with the same repetition
Print M distinct numbers such that the number with maximum
count then print the number of larger value first.
Note: Please read the sample explanation carefully,
Input format
• First line contains an integer N.
• In the second line: N numbers on follow.
Output format
Print M numbers in the order illustrated in the question.
Constraints
1SN < 1000
1 < a < 1000
Sample Output
216
Sample Input
1 2 2 1 6
Explanation
In the given sample there are 3 distinct numbers 1, 2 and 6 veth Ti values as 2.2 and 1. So as per the order asked 2 comes before 1 as it has same T; value but its larger than 1. 1 comes before 6 as its Te value is greater than 6.​

Answers

Answered by simran182003
2

Answer:

I can't understand it sorry

Similar questions
Math, 9 months ago