← Questions
Check and insert among a million user IDs
0
I was asked this
No reports yet. Sign in to say where you were asked it.
A service holds about a million user IDs. Each request carries a user ID: if it is not in the set yet, add it. Decide how to store the IDs and run this check-and-insert, and talk through the trade-offs between latency, memory and accuracy (for example an exact hash set versus a probabilistic structure).
No official answer yet. Draw yours on the right; publish it and it shows under Community.
Nothing published yet. Publish your canvas and it shows here for others to open and remix.
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing
