Arrays | Sololearn: Learn to code for FREE!

+2

Arrays

I was wondering if anyone knows how to find the median of an array? I already sort the array just need to know to use what I sort to help find the median.

7/4/2019 10:56:49 PM

Beanie

5 Answers

New Answer

+5

https://code.sololearn.com/ctGms4SyGqH7/?ref=app

+4

You can just use the basic statistic method, the (n + 1)/2 to find the index.

+4

The middle element of a sorted array.

+3

#Python import statistics listA =[12,32,56,67,88] print(statistics.median(listA))

+3

i need it for java