Mean median mode

Back to Topic List

aszaloki     2024-10-11 07:40:57

Hi Kevin,

I can see that you changed something in Problem #1 (as now it is the first item in the recent problems list on the main site). So I checked it and realized that my previous solution is lost. I have submitted again, but my solution is denied. Looking the input parameters it seems that first number indicating the size of the set is less then the floowing number of data by one :)

admin (Kevin)     2024-10-11 12:57:25
User avatar

Hi Adam!

Indeed an off-by-one error! Thank you for pointing that out!

I did indeed shuffle things around a little bit, Problem #1 become Problem #2 (so your solution should be preserved there) and the new Problem #1 variant should be somewhat more accessible to new users :)

aszaloki     2024-10-11 14:56:03

Ok, thank you, everything is fine now.

Please login and solve 5 problems to be able to post at forum