|
|
|
|
|
by pvillano
125 days ago
|
|
To be pedantic, median is cheaper than sorting. O(n) with a quicksort-like algorithm. Also, if you're taking an average of floating point numbers, you might want to sort it first and add from smallest to largest, to better preserve precision |
|
https://glizen.com/radfordneal/ftp/xsum.pdf