← Questions

Find the bugs in a dictionary memoization cache under concurrency

0
MercorCodingLast asked Sep 2026

A coding interview question asked in Mercor's technical phone screen, last asked Sep 2026. It tests caching, concurrency and code review.

You are shown a small cache that stores the results of a slow function in a module-level dictionary. It runs inside a long-lived, multi-threaded web service, and many requests call get_result at the same time.

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

What it tests

caching · concurrency · code review · python

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