Implement a Set with Readable Snapshots

Read the full interview experience this question came from →

Quick Overview

Implement a set that supports `add(value)`, `remove(value)`, `contains(value)`, `snapshot()`, and `containsAt(snapshot_id, value)`. Make the API or object boundaries explicit, then cover invariants, edge cases, testing strategy, and operational trade-offs.

Implement a Set with Readable Snapshots

Company: OpenAI

Role: Software Engineer

Category: Software Engineering Fundamentals

Difficulty: hard

Interview Round: Onsite

Overview: Implement a set that supports `add(value)`, `remove(value)`, `contains(value)`, `snapshot()`, and `containsAt(snapshot_id, value)`. Make the API or object boundaries explicit, then cover invariants, edge cases, testing strategy, and operational trade-offs.

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

|Home/Software Engineering Fundamentals/OpenAI
OpenAI logo
OpenAI
Aug 10, 2026
hardSoftware EngineerOnsiteSoftware Engineering Fundamentals
98
0
Loading...
Loading comments...