I have a process that generates values and that I observe. When the process terminates, I want to compute the median of those values.
If I had to compute the mean, I
You can
k
O(k)
O(n)