← Questions

Thread-safe tally counter with bounded memory

0
MetaCodingLast asked Jul 2026

A coding interview question asked in Meta's technical phone screen, last asked Jul 2026. It tests concurrency, hash maps and memory limits.

Build a tally service that many threads call at once. Each call records an event for a key at a timestamp, and queries ask how many events a key had in an inclusive time range.

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

  • Meta · Technical phone screen · Last asked Jul 202645 min · Two coding problems in CoderPad, about 20 minutes each · Usually no AI; some newer screens are AI-assisted

What it tests

concurrency · hash maps · memory limits

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