in reply to Perl Newbie trying to figure out how to find out Median in my program
Consider that the Median of a set is the number where half of all elements of the set are smaller than that number and half of them are larger than that number.
If you have a list that is sorted, the median will be somewhere close to the middle of the list.
If the list has an odd number of elements, it will be right in the middle of the list.
If you show us your code, we can likely give better advice that is more to the point.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl Newbie trying to figure out how to find out Median in my program
by bricksatmywindow (Initiate) on Apr 20, 2017 at 00:04 UTC | |
by Anonymous Monk on Apr 20, 2017 at 00:56 UTC |