Find Mean and Mode
Problem Overview
- Compute the floor of the arithmetic mean and the mode for N integers.
- Input: first line N; second line has N space-separated integers. Output: two space-separated integers: floor(mean) and mode.
- Domain: basic statistics and data processing on numeric arrays.
- Asked in Cisco interviews, this coding interview problem is a common interview question.
- Constraints: not specified.
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Input Variables
Execution Result:
