Check-and-Insert for a Million User IDs: Balancing Latency, Memory and Accuracy

Quick Overview

Design a check-and-insert service for about a million user IDs that reports whether an ID already exists and adds it if not. It tests memory estimates, data structure choice, atomic inserts under concurrency, trading memory for accuracy with compact filters, and durable on-disk storage with fast reads and writes.

Check-and-Insert for a Million User IDs: Balancing Latency, Memory and Accuracy

Company: Mercor

Role: Software Engineer

Category: System Design

Difficulty: medium

Interview Round: Technical Screen

Overview: Design a check-and-insert service for about a million user IDs that reports whether an ID already exists and adds it if not. It tests memory estimates, data structure choice, atomic inserts under concurrency, trading memory for accuracy with compact filters, and durable on-disk storage with fast reads and writes.

Read the full Mercor Software Engineer interview experience this question came from

Mercor logo
Mercor
Oct 4, 2026
mediumSoftware EngineerTechnical ScreenSystem Design
18
0
Loading...