LIMITED TIME 🎁: Register now to get 60 minutes of AI Mock Interviewing for FREE!

Join
    Back to Directory
    Openai logo

    Openai

    Mid-sized

    OpenAI is an artificial intelligence research and deployment company known for developing advanced AI models such as the GPT series, DALL-E, and the ChatGPT product. It focuses on building safe and broadly beneficial artificial general intelligence and offers its models to developers and businesses through APIs and consumer products.

    667total notesUpdated 1 month ago

    Every question, shortened answers

    Browse all 667 notes for Openai. Each answer is trimmed to its first line — create a free account to read them in full.

    Openai logo
    Openai·Frontend Engineer·Technical Phone Screen
    Jul 2026

    Frontend coding round at OpenAI for a frontend engineer role. The whole thing was one meaty component design question about building a streaming chat UI, with a bunch of follow-ups that got progressively more painful the further in you went.

    Build a minimal chat interface where the user submits a prompt and the assistant's response streams in token by token. Walk through the component structure, state management, and how you'd handle the incremental rendering.How would you prevent duplicate submissions while a stream is still in progress, and what do you do about the request that's already running?A response can be hundreds of small chunks. How do you keep the UI responsive and avoid performance problems from re-rendering on every single chunk?+5 more

    “The state model tripped me up at first.”

    8Sign in to interact
    View Post
    Openai logo
    Openai·Software Engineer·Technical Phone Screen
    Jul 2026

    OpenAI software engineering interview with a systems-focused coding problem. The question was about building a persistent key-value store from scratch with shard-based file storage, which sounds manageable until you actually have to think through all the edge cases live.

    Design and implement a persistent key-value store that writes data to fixed-size shard files on disk. The store should support put, get, delete, shutdown (persist to disk), and restore (reload from disk). You're given encode/decode helpers for serialization.

    “I spent the first few minutes just trying to nail down the in-memory index before even thinking about the file layout, which was probably backwards.”

    1Sign in to interact
    View Post
    Openai logo
    Openai·Machine Learning Engineer·Technical Phone Screen
    Jul 2026

    Interviewed for an ML Engineer role at OpenAI and got hit with a pretty involved algorithmic problem about version strings and a rate-limited API. Two-part question that escalated fast, and the second part especially required some real design thinking under pressure.

    You have a list of version strings in the format {major}.{minor}.{patch} with zero-padded segments. Given an arbitrary list of these versions and an isSupported(version) API call, return the smallest version (by version ordering) that supports a feature. Support is not monotonic. How do you parse and compare versions, handle duplicates or invalid inputs, and what is the time and space complexity?Now the isSupported API is rate-limited so you can't make O(N) calls. Support is still not globally monotonic, but you're guaranteed that for any supporting version, support will eventually reappear in the next patch group, the next minor group, and the next major group. Design a sub-linear algorithm to find the earliest supporting version. Walk through correctness, call count, and edge cases like no supporting version at all or very sparse support.

    “My first instinct was just sort and scan, which is correct but I fumbled explaining the comparison logic for zero-padded segments out loud.”

    2Sign in to interact
    View Post
    Openai logo
    Openai·Software Engineer·Technical Phone Screen
    Prefer not to say
    Jul 2026

    OpenAI software engineer interview focused on a persistent key-value store problem with some meaty follow-ups around storage and write-ahead logging. The core question was manageable but the follow-ups are where things got real.

    Implement an in-memory key-value store with put, get, delete, serialize, and deserialize operations. Keys and values are arbitrary byte strings so you can't rely on delimiters.The serialized data might be too large for a single file. How would you extend the persistence format to split data across multiple files or segments and still restore correctly?Full rewrites on shutdown are expensive once the store grows. How would you add an append-only mutation log, replay it on startup, and decide when to compact it back into a snapshot?

    “The delimiter thing is what trips people up.”

    3Sign in to interact
    View Post
    Openai logo
    Openai·Software Engineer·Technical Phone Screen
    Prefer not to say
    Jul 2026

    Got a coding problem at OpenAI for a software engineer role that was deceptively tricky to think through cleanly. The core problem was manageable but the follow-up about prefix-balanced scheduling added a whole layer I wasn't fully prepared for.

    Design a scheduling system for a data labeling platform with tasks, AI models, and human annotators. Given counts for each entity type and a minimum assignment threshold k, return a list of [task, model, human] assignments such that every human appears in at least k assignments and no human is assigned the same task more than once.Follow-up: modify your solution to return a prefix-balanced schedule, where at every prefix of the output the task-model usage counts differ by at most 1, and each human's per-model usage counts also differ by at most 1.

    “Spent the first few minutes just making sure I understood the constraints, which was the right call.”

    2Sign in to interact
    View Post
    Openai logo
    Openai·Software Engineer·Onsite - System Design / Architecture
    Prefer not to say
    Jul 2026

    OpenAI SWE interview that went deep on memory allocator design, starting from a basic first-fit implementation and pushing all the way through coalescing, best-fit optimization, and complexity trade-offs. Four parts total, each building on the last, and the follow-ups got pretty hairy toward the end.

    Design and implement a simplified memory allocator with malloc and free operating over a single fixed-size heap array. Walk from a correct first-fit implementation to an optimized one, covering block layout, splitting, and per-operation complexity.How should free handle adjacent free blocks, and what is the difference between external and internal fragmentation?Propose a best-fit optimization for the allocator. What data structure makes the lookup efficient, and why is a plain min-heap not a clean fit?+4 more

    “This is the kind of question where you think you know it and then the details eat you alive.”

    7Sign in to interact
    View Post
    Openai logo
    Openai·Software Engineer·Onsite - System Design / Architecture
    Prefer not to say
    Jul 2026

    System design round at OpenAI for a software engineering role, centered entirely on designing a Sora-style text-to-video generation platform. The question was massive and the interviewers clearly had a specific mental model they were probing toward, especially around failure handling and job state machines. Walked out unsure whether I'd gone deep enough on the parts that actually mattered.

    Design a text-to-video generation platform similar to Sora, covering the user-facing API, job lifecycle, GPU worker scheduling, failure handling, artifact storage, safety enforcement, and observability.A worker gets network-partitioned, the system declares it dead and retries the job elsewhere, the retry completes successfully, and then the original worker comes back online and tries to publish its result. How does your design prevent a double publish or double billing?If 80% of a long-running GPU job completes and then the spot instance gets preempted, how do you avoid restarting the entire computation from scratch?+5 more

    “This is the kind of question where you can spend 45 minutes and still feel like you only scratched the surface.”

    8Sign in to interact
    View Post
    Openai logo
    Openai·Software Engineer·Technical Phone Screen
    Jul 2026

    Got a pretty gnarly coding problem for an OpenAI software engineer round. The problem was a custom data structure with some real edge cases around ordering and retroactive updates. Came out feeling like I had a decent handle on the core design but probably fumbled the complexity analysis at the end.

    Design and implement an expiring-credit ledger that supports out-of-order event insertion. The ledger should expose three operations: adding a credit bucket with an id, amount, activation timestamp, and expiration duration; charging a given amount at a given timestamp by consuming from the earliest-expiring active credits first (with tie-breaking by activation time then lexicographic id); and querying the total active balance at any timestamp. Events can arrive in arbitrary timestamp order, so the structure must handle retroactive inserts correctly.

    “The basic structure clicked pretty fast.”

    1Sign in to interact
    View Post
    Openai logo
    Openai·Data Scientist·Technical Phone Screen
    Prefer not to say
    Jul 2026

    SQL-heavy technical screen for a DS role at OpenAI. The whole thing was basically one long experiment analysis problem with a bunch of moving parts: ITT analysis, triggered analysis, and a data quality audit all in one sitting. Felt like a take-home crammed into a live session.

    Write a SQL query to compute the intent-to-treat paid conversion rate within 60 days of first exposure, broken down by variant (control vs. trial), for users first exposed between June 1 and June 30, 2025. Each user should be counted once using only their first exposure, and users who had any payment before their first exposure must be excluded. Return variant, exposed user count, converters within 60 days, conversion rate, and 95% Wald confidence intervals.Write a second SQL query for a triggered analysis, restricting to users in the trial variant who actually started a trial, and compute their paid conversion rate within 60 days of first exposure.Write a data quality SQL query that flags the following anomalies: users who have a trial record but no prior exposure, users with multiple exposures on the same calendar day, exposure timestamps that come after trial_started_at, and duplicate user_ids in the users table.

    “The leakage exclusion is where I got tripped up first.”

    3Sign in to interact
    View Post
    Openai logo
    Openai·Software Engineer·Technical Phone Screen
    Prefer not to say
    Jul 2026

    Interviewed for a software engineering role at OpenAI and got a problem set built around IPv4 address iteration. Four parts, each building on the last, ending with an open-ended optimization discussion. Felt pretty solid on the first two but the CIDR bitmasking tripped me up more than I expected.

    Implement a Python class that iterates forward through IPv4 addresses starting from a given IP up to 255.255.255.255, using the iterator protocol.Now implement a reverse iterator that starts from a given IP and counts down to 0.0.0.0.Given a CIDR string like '192.168.1.0/24', use bitwise operations to compute the start and end IP of the range, then iterate through all addresses in it.+1 more

    “This part was fine.”

    2Sign in to interact
    View Post