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.
Most reported: Disease/Epidemic Spreading Simulation — 52×
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.
| Question | Round | Reported | Last 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 '.'… | Coding | 52× | 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… | Coding | 50× | 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.… | Coding | 35× | 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… | Coding | 34× | 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… | Coding | 29× | 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… | Coding | 28× | 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… | Coding | 21× | 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,… | Coding | 20× | 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… | Coding | 19× | 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… | Coding | 16× | 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… | Coding | 16× | 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… | Coding | 14× | 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,… | Coding | 11× | 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… | Coding | 11× | 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;… | Coding | 8× | 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… | Coding | 6× | 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… | Coding | 5× | 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… | Coding | 5× | 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 =… | Coding | 4× | 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… | Coding | 4× | 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… | Coding | 4× | 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.… | Coding | 3× | 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.… | Coding | 3× | 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),… | Coding | 3× | May 2025 |
| File/Folder Deduplication and Navigation | Coding | 3× | 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… | Coding | 2× | April 2025 |
| Bitwise Operations OpenAI phone screen reportedly includes bitwise operations question. HR confirmed it is an algorithms problem… | Coding | 2× | 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… | Coding | 2× | 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… | Coding | 2× | 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… | Coding | 1× | 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 ''… | Coding | 1× | 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… | Coding | 1× | October 2025 |
| Test Design | Coding | 1× | 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).… | Coding | 1× | 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… | OA | 1× | 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,… | OA | 1× | November 2025 |
FAQ
How many coding questions does OpenAI ask?▾
What is the most common OpenAI coding interview question?▾
How fresh is AceOffer's OpenAI coding question data?▾
Get the full OpenAI catalog
Every question, every candidate-reported follow-up, and what passers actually do. Monthly refresh.