← Questions

Hit counter for the last five minutes

0
AppleCodingLast asked Aug 2026

A coding interview question asked in Apple's coding round, last asked Aug 2026. It tests sliding window, queues and concurrency.

Build an in-memory tracker that records events as they happen and answers questions about the events inside a sliding window ending now, for example the last five minutes (W seconds in general). Many threads record and query at the same…

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Apple · Coding · Last asked Aug 2026

What it tests

sliding window · queues · concurrency · design

Your code and the AI tutor open when you unlock this question.