

1. minimum: The minimum element in the sample.
2. maximum: The maximum element in the sample.
3. mean: The average of the sample, calculated as the total sum of all elements divided by the total number of elements.
4. median:
If the sample has an odd number of elements, then the median is the middle element once the sample is sorted.
If the sample has an even number of elements, then the median is the average of the two middle elements once the sample is sorted.
5. mode: The number that appears the most in the sample. It is guaranteed to be unique.
The first line contains an integer ‘T’ denoting the number of test cases. Then each test case follows.
The first input line of each test case contains 256 space-separated integers where i-th integer denotes the frequency of i-th integer in the sample.
For each test case, print 5 space-separated values denoting minimum, maximum, mean, mode and median respectively. The values must be correct up to 5 decimal places.
Print the output of each test case in a separate line.
You are not required to print the expected output; it has already been taken care of. Just implement the function.
1 <= T <= 50
0 <= count[i] <= 1000
Where count[i] is the i-th element of the “count” array/list.
Time limit: 1 sec
The basic idea of this approach is to iterate through the sample twice. In the first iteration, we will get the minimum, maximum, mean and mode. In the second iteration, we’ll find the median of the sample.
Algorithm
Pair Product Div by K
Pair Product Div by K
Merge Two Sorted Arrays Without Extra Space
Merge Two Sorted Arrays Without Extra Space
Co-Prime
First Digit One
Special Digit Numbers