Arrays | Sololearn: Learn to code for FREE!



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


5 Answers

New Answer



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


The middle element of a sorted array.


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


i need it for java