14/29
Part 3 of 6 · Time windowsLearn and do

Time moves only when a call passes it in

In this test, nothing happens between calls.

Predict

x is stored at 10 with a TTL of 5, and no call runs from 11 to 19. Is x still in the dict at 17?

Pick an answer above to see the rest
Predict

Two requests per 10 seconds, arriving at 0, 5, 9, 10, 11 and 15. With half-open windows, the request at 0 stops counting at 10. Which requests pass?

Pick one to see what it prints.
Pick an answer above to see the rest