Over the last m numbers of a stream, drop the k smallest and the k largest and average the rest — fast, on every call.
Over the last m numbers of a stream, drop the k smallest and the k largest and average the rest — fast, on every call.
Opens with the full question.