Practice makes perfect - Median


#1

Alright now I am facing a problem here and my code isn't working so please help. Thanks.


Median
#2

length / 2 doesn't give you the answer, it gives you the index in numbers at which you can find the answer. When the numbers list is [1], the answer is at numbers[0]. So what you return needs to reflect that.


#3

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