Math, asked by astudas9483, 1 year ago

find median of an unsorted array geeksforgeeks

Answers

Answered by krishnasweethap8nkwf
0
Mean of an array = (sum of all elements) / (number of elements) Median of a sorted array of size n is defined as below : It is middle element when n is odd and average of middle two elements when n is even. Since the array is not sorted here, we sort the array first, then apply above formula.

Similar questions