OpenAI Coding Interview Questions

These are the 36 OpenAI coding interview questions AceOffer has reconstructed from candidate reports, sorted by how often each was reported. Disease/Epidemic Spreading Simulation leads at 52×. Every question shows when it was last reported; the catalog refreshes monthly.

Part of the full catalog of OpenAI interview questions, covering every round.

Key facts

  • •36 distinct coding questions indexed
  • •419 candidate reports across those questions
  • •Most reported: Disease/Epidemic Spreading Simulation — 52× (last seen September 2026)
  • •Refreshed monthly · last updated October 2026

Which OpenAI rounds ask coding questions?

OpenAI draws coding questions from the rounds below. Counts are distinct questions, not times asked.

Onsite coding34 questions

Most reported: Disease/Epidemic Spreading Simulation — 52×

Async coding assessment2 questions

Most reported: Shortest Path in Tree Network Visiting All Task Nodes — 1×

Which OpenAI coding questions get asked most?

Sorted by candidate-report frequency. Click any question for the full breakdown.

QuestionRoundReportedLast seen
Disease/Epidemic Spreading Simulation

Plants on a grid catch an infection from their neighbours; simulate it day by day. The grid holds infected 'X', healthy '.'…

Coding52×September 2026
GPU Credit Management SystemFree

Implement a GPU credit tracker, GPUSolution, with three methods: - add(grant_id, amount, timestamp, expire): grant amount credits, usable from timestamp up to…

Coding50×September 2026
Transformer DebuggingFree

Before the round, the recruiter's prompt names it ML Debug: a transformer model written in PyTorch whose bugs you find and fix.…

Coding35×September 2026
Toy Language: Type Inference and AST

The round is one problem in two graded parts, in a 60-minute round where reports give a length. Thirty-four reports. Reports that…

Coding34×July 2026
In-Memory SQL / Database Implementation

Build an in-memory database you query through method calls. There is no framework: you write and test everything yourself. One candidate says…

Coding29×March 2026
Key-Value Store Design and Implementation

Implement a key-value store whose shutdown() writes everything to a file store and whose restore() reads it back, so a fresh instance…

Coding28×August 2026
Social Network: Followers, Snapshots and Recommendations

Build a SocialNetwork class in which users follow and unfollow each other and you can take snapshots of the follow graph, then…

Coding21×September 2026
Distributed Machine Count (Tree Network)

You are given an n-ary tree in which every node is a machine in a cluster. A node knows its own id,…

Coding20×September 2026
Classifier Training and Analysis

The recruiter's prompt for this round, as a candidate quoted it: "We'll spend the session writing machine-learning code—training a classifier and exploring…

Coding19×September 2026
Chatbot / Bot Message Router Refactoring

Reports call this round a refactoring exercise; one candidate says the recruiter's prompt was "make improvements to some basic existing code". It…

Coding16×September 2026
Two-Team Turn-Based Combat System

Simulate a battle between two teams of monsters and produce an event log. Sixteen reports name this question, at the phone screen…

Coding16×September 2026
IP Address / CIDR Iterator

Implement IPv4 address iterators in Python with the standard iterator protocol: __init__, __iter__ and __next__. Reports describe a 60-minute round, asked both…

Coding14×September 2026
NumPy Puzzle / Vectorization

A 60-minute ML coding round in three parts: one-nearest-neighbour in NumPy with no loops, the same prediction as a neural-network forward pass,…

Coding11×September 2026
Memory Allocator Implementation

The round is one problem the interviewer extends, a 75-minute phone screen in every report whose poster gives a length (a commenter…

Coding11×August 2026
Python Dependency Version Control

A 75-minute general coding round in which the tests reveal the problem. Eight candidates report it and four describe it in detail;…

Coding8×May 2026
ML Coding: Matrix Prefix Products, Backprop and Hillis-Steele Scan

This is the ML coding round on prefix products of matrices. Six reports between April and August 2026 describe it, three of…

Coding6×August 2026
Dynamic Human Labeling / Task Scheduling

The round is one problem in two graded parts, on the 60-minute general coding round. Five candidates report it. Four describe it…

Coding5×July 2026
Resumable List/File Iterator

Design a resumable iterator: an iterator whose position you can save and later restore, so that reading picks up exactly where the…

Coding5×June 2026
Entropy Calculation with Numerical Stability and Streaming

You are given a vector of logits (raw, unnormalized scores). Compute the Shannon entropy of the softmax distribution they define: p_i =…

Coding4×July 2026
Poker Simulation

A card game, reported as a "poker simulation" and as a new question from late August 2026. Each player is dealt three…

Coding4×September 2026
Implement Work Queue with Timeout, Retries, and Dead Letter Queue

Implement a fault-tolerant work queue, WorkQueue. The reports describe the queue and then a dependency follow-up that has to be coded, so…

Coding4×September 2026
Jetpack Compose / UI Components Implementation

Build a rating card component in Kotlin Compose with rating and comment fields (both required before submission). Display success message after submit.…

Coding3×May 2026
Rate Limiter Implementation

A debugging round. You get a small Django app serving a dummy version of ChatGPT, and its rate limiter does not work.…

Coding3×July 2026
Staff / Beat Notation Conversion

Parse instrument name and beat sequence (binary-like notation where '1 0' = half note, '1 1' = two quarter notes),…

Coding3×May 2025
File/Folder Deduplication and NavigationCoding3×April 2026
Excel Sheet Cell Dependencies and Cycle Detection

Implement a Spreadsheet class with two methods, set_cell(key, value) and get_cell(key) (the reports write them setCell and getCell). A cell holds either…

Coding2×April 2025
Bitwise Operations

OpenAI phone screen reportedly includes bitwise operations question. HR confirmed it is an algorithms problem…

Coding2×May 2025
Overlapping Key Range / Shard Rebalancing

Part 1 (known problem): Given multiple shards with overlapping thresholds, output rebalanced shards minimizing data movement; solved using mini heap to maintain…

Coding2×June 2026
CD Directory Navigation

Implement a 'cd' command that handles relative paths with special cases ('../A/B/', './A/', '../A/B/../', etc.). Write a cd() method that simplifies…

Coding2×October 2025
Game of Life

Similar to LeetCode 289. Approximately 5 sub-questions total. Requires careful attention to clarifying questions as some standard assumptions may change during the…

Coding1×November 2025
Shortest Path to Visit All Points on a Grid

Given an m×n grid where each cell is one of '.', '#', or '', find the shortest path that visits all ''…

Coding1×October 2025
Largest Sub-Grid in 2D Array

Given a 2D array of integers and a value maxsum, find the maximum size k such that every possible k×k square sub-grid…

Coding1×October 2025
Test DesignCoding1×July 2026
Implement ChatGPT-like React Interface with Streaming

Build a React component mimicking the ChatGPT UI (input box, message flow, loading states, streaming response handling).…

Coding1×March 2026
Minimum Steps to Target Number via Modular AdditionFree

Starting from a given number, at each step you can add any element from an array and take modulo. Find minimum steps…

OA1×November 2025
Shortest Path in Tree Network Visiting All Task NodesFree

Given a start point, end point, and task nodes in a tree network, find the minimum time to start from start point,…

OA1×November 2025

Browse the full OpenAI catalog →

FAQ

How many coding questions does OpenAI ask?▾
AceOffer has reconstructed 36 distinct OpenAI coding interview questions from 419 verified candidate reports, each with verbatim follow-ups and a last-reported date.
What is the most common OpenAI coding interview question?▾
Disease/Epidemic Spreading Simulation — reported 52 times, last seen September 2026.
How fresh is AceOffer's OpenAI coding question data?▾
The catalog is refreshed monthly from new candidate reports, and every question shows when it was last reported.

Get the full OpenAI catalog

Every question, every candidate-reported follow-up, and what passers actually do. Monthly refresh.

Is this helpful?