Statistics HW
CodeChefOpen on judge ↗
Tanu is bored with school, doing same old questions. The Maths teacher has given then homework to calculate mean, median and mode of some data. Can you help Tanu with the homework? Mean of an array of numbers mean their average. Median of an array means the middle element when the array is sorted. Note that when the array size (=n) is even, the median is (n/2 + 1)th element. Mode of an array is t
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start