Given input events [time, value], emit at most one event per window ms.Always emit the first event. Subsequent events within the window are dropped.
[time, value]
window
solve(window, events) returns the emitted values in order.
solve(window, events)
Sample tests