Median of an even length array is generally defined by the mean of the middle elements. However in this question it is not clear what is the mean of an even length array?
Median Definition not clear
Median is very common , every one knows about it . That’s why it is not necessary to specify median definition.
For even length median is (n/2th + n/2th+1)/2;
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.