The OpenAI mid-level SWE phone screen combined a multi-part coding problem around a versioned social follow graph with a system design discussion for a real-time online chess platform.
The coding question progressively added snapshots, follower/followee queries, and two-hop recommendations. The system design portion was very open-ended and placed particular emphasis on overall architecture, asynchronous matchmaking, state transitions, and reliability concerns such as retries and idempotency.
Interview Details
Coding — Versioned Follow Graph with Snapshot Queries
The first part asked me to implement a social-graph class supporting follow and unfollow operations together with historical snapshots. The core interface included operations similar to:
A snapshot represented a historical view of the graph, and is_following(...) needed to answer the relationship query using that snapshot rather than only the latest state. I spent more time than expected debugging the snapshot behavior during this section.
Part 2 — Followers and Followees
The second stage added direct graph queries:
get_followers(user_id)
get_followees(user_id)
get_followers(user_id)
get_followees(user_id)
These
Unlock Full Details
Create a free account to unlock this interview experience report.