GUVI
Back

Number

Created 3 years ago
22 Views
1 Comments
20CS081-KARTHIKEYANS
@20CS081-KARTHIKEYANS
20CS081-KARTHIKEYANS
@20CS081-KARTHIKEYANSProfile is locked. Login

https://www.guvi.in/code-kata-main?concept=numbers

Number

You are given an array of digits. Your task is to print the digit with maximum frequency.

Input Description:
You are given length of array ’n’,next line contains n space separated numbers.

Output Description:
Print the number with maximum frequency. If two number have equal freqency prin the number that comes first

Sample Input :
7
1 2 3 4 4 4 5
Sample Output :
4

Comments
Please login to comment.
 
Powered by habitate.io Habitate