Implement the logic of the sort() method. It must sort the data in the array according to its distance from the median. Return the array sorted from the least to greatest distance. If several numbers are equally distant, then sort them in ascending order.
Read online about the median of a sample
You must be signed in to leave a comment
This page doesn't have any comments yet