Getting the error -> Oops, try again. median([4, 5, 5, 4]) returned 5.0 instead of 4.5


#1

hey guys, I'm getting the error -> Oops, try again. median([4, 5, 5, 4]) returned 5.0 instead of 4.5..
but the median of this list isn't 5? the sum of the middle 2 (5 and 5) divided by 2, right? (5+5)/2 = 5
I don't know, I'm here for like 6 hours, my brain might be not working well haha thanks


Median logic
#2

Recall that the median is the middle of a sorted sample space.


#4

ohhhhh, right. thank you, my friend!


#5

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.