Problem 3369 · Hard

Design an Array Statistics Tracker

Build a tracker that accepts new numbers, removes its oldest number, and reports the floored mean, the median (the larger middle value when the count is even) and the mode (the smallest value on a tie).

Open the interactive visualisation