OpenAI agentic coding (beta) interview

Round 5 of 8 · 47 questions reported

See the whole loop
Format
An existing codebase and changes too large to write by hand; you work through them with an AI coding agent
AI use
An AI coding agent is expected
Heads-up
In beta in 2026, so not every candidate gets it; ask your recruiter whether your loop has it.

Questions OpenAI asks in this round 47

  • GPU credit ledger with out-of-order eventsCodingLockedBuild an in-memory ledger for GPU credits. Credit arrives as grants: each one has a unique id, an amount, and a time window in which it can be spent.
    Last asked Oct 2026
  • Vectorized nearest-neighbour classifier as a linear layerCodingLockedImplement a 1-nearest-neighbour classifier in NumPy with no Python loops: each test point gets the label of the closest training point by Euclidean distance. Then show that the…
    Last asked Sep 2026
  • Count and map a cluster tree with message passingCodingLockedA cluster of n machines is wired as a rooted tree (any number of children per node). Each machine knows only three things: its own id (a string such as "4"), its parent's id…
    Last asked Sep 2026
  • Data labeling scheduler with prefix-balanced modelsCodingLockedA data labeling platform pairs tasks, AI models and human annotators. IDs are 1-indexed strings: tasks "t1"…"t{totalTask}", models "m1"…"m{totalModel}", humans…
    Last asked Jul 2026
  • Extensible chat app with command botsCodingLockedImplement an in-memory chat app with one shared channel that people and bots post to. Users send text.
    Last asked Oct 2026
  • Earliest release that supports a featureCodingYou ship a library whose releases are listed in versions, sorted from oldest to newest. Each entry is a "MAJOR.MINOR.PATCH" string; parts are non-negative integers and may be…
    Last asked Mar 2026
  • Longest increasing subsequence of a price seriesCodingLockedYou get a series of financial values in time order: recorded prices, or monthly net profits, which may be zero or negative. Return the largest number of values you can pick…
    Last asked Oct 2026
  • Simplify a quadratic expressionCodingLockedYou get a string that is a sum of terms in any order. Each term is a constant, a multiple of x, or a multiple of x^2, with an optional sign and an optional integer coefficient.
    Last asked Oct 2026
  • Notification service with several bots per channelOO designLockedDesign the classes and interfaces for a notification service. A request names its recipients, the content and any of three channels: email, SMS and Slack.
    Last asked Oct 2026
  • Leaves left in a garden after wind gustsCodingLockedA rectangular garden is a grid where garden[r][c] is the number of leaves in that cell. Gusts are processed left to right; each gust (U, D, L or R) moves every remaining leaf one…
    Last asked Sep 2026
  • Typed task lock for mutually exclusive job typesCodingLockedSome jobs on a shared accelerator pool must not run alongside jobs of a different kind. Each job runs on its own thread and has one of two types: "gen" or "score".
    Last asked Sep 2026
  • Crash-safe on-disk key-value storeCodingLockedBuild a key-value store that keeps its data in files on the local disk and survives a crash at any moment: after a restart it must come back with every write it acknowledged, and…
    Last asked Sep 2026
  • Resumable iterators that save and restore their positionCodingLockedDesign an iterator that can save its position as a small, portable checkpoint and later be rebuilt from it, even in a new process, so iteration continues exactly where it…
    Last asked Jun 2026
  • Price a macaron order with set discountsCodingLockedA bakery sells macarons in at most five flavors, all at the same unit price. The baker packs an order into sets: a set holds at most one macaron of each flavor, and the baker…
    Last asked Oct 2026
  • Shortest path on a grid with a custom move setCodingLockedAn atom sits on a grid of allowed (.) and forbidden (#) cells and must reach a target cell. Instead of the usual four moves you get a list of actions, each a row and column offset.
    Last asked Oct 2026
  • Mirror or blur a grayscale imageCodingLockedA grayscale image is a rectangular matrix of pixel values from 0 to 255. Given a filter code, return a new image.
    Last asked Sep 2026
  • Predict the winner of a pick-from-either-end gameCodingLockedTwo players play on a row of non-negative integers. They alternate, Player 1 first; on each turn the player takes either the leftmost or the rightmost remaining number and adds…
    Last asked Sep 2026
  • Fix one instruction so the robot reaches the targetCodingLockedA robot starts on S in a rectangular grid, facing up, and runs a program of commands: F moves one cell forward, B moves one cell backward without turning, and L and R turn in…
    Last asked Sep 2026
  • Fewest tray rotations to eat a three-course mealCodingA round table has seats positions numbered clockwise from 0, and a customer sits at position customer. A rotating tray holds one dish slot in line with each seat; dishesi is the…
    Last asked Mar 2026
  • First meeting point of two digit-sum sequencesCodingStart from a positive integer and repeatedly add the sum of its decimal digits to get the next value: after 471 comes 471 + 4 + 7 + 1 = 483. Given the starting values of two such…
    Last asked Mar 2026
  • Simulate particles from a point source hitting a screenCodingA point source at (0, 0) fires particles at an infinitely tall vertical screen on the line x = 1. Each particle leaves at an angle theta drawn uniformly from (-pi/2, pi/2)…
    Last asked Feb 2026
  • Resolve a cd command to an absolute pathCodingLockedImplement the path logic of a shell's cd. Given the current directory and the argument to cd, return the absolute path pwd would print afterwards.
    Last asked Dec 2025
  • IP range to CIDR blocksCodingGiven a starting IPv4 address and a count n, return the shortest list of CIDR blocks that covers exactly the n consecutive addresses starting there, and no address outside that…
    Possibly retired
  • Count identical islands in two gridsCodingYou get two binary grids of the same size. A region is a maximal group of 1 cells joined up, down, left or right. Two regions match when they contain exactly the same cell…
    Possibly retired
  • Largest square subgrid with every sum under a limitCodingYou get an integer grid and a limit maxsum. A side length k is valid when every contiguous k x k square in the grid sums to at most maxsum. Return the largest valid side length…
    Possibly retired
  • Backpropagate through sort and divide by the medianCodingA function sorts a vector in ascending order and divides every sorted element by the median of the input: For example, f(3, 2, 1) = 0.5, 1.0, 1.5. Given the input x and the…
    Possibly retired
  • Indexed sequence with checkpointsCodingLockedBuild a growable array that can take cheap snapshots. The spec arrives in three parts; finish and test each part before the next.
    Last asked Jul 2026