OpenAI Software Engineering Fundamentals Interview Questions

Practice the exact questions companies are asking right now.

19 Questions 1 Company08.10.2026
Showing 19 results
Role
OpenAI logo
OpenAI
Medium
Software Engineer

Design First-Fit and Best-Fit Memory Allocation

Design the core of a heap allocator over one contiguous managed region. Blocks have an address, size, and free/allocated state. Allocation requests sp...

Software Engineering Fundamentals
36
1
243 people solved
Jul 27, 2026
OpenAI logo
OpenAI
Hard
Software Engineer

Implement a Set with Readable Snapshots

Implement a set that supports add(value), remove(value), contains(value), snapshot(), and containsAt(snapshot_id, value). Creating a snapshot returns ...

Software Engineering Fundamentals
1
0
17 people solved
Aug 10, 2026
OpenAI logo
OpenAI
Medium
Software Engineer

Clarify and Design Social-Graph Milestones

Clarify and Design Social-Graph Milestones An interview exercise progresses through a social graph with snapshots, a milestone for retrieving follower...

Software Engineering Fundamentals
18
0
129 people solved
Jul 17, 2026
OpenAI logo
OpenAI
Medium
Software Engineer

Count Machines and Recover a Distributed Tree Topology

Count Machines and Recover a Distributed Tree Topology A cluster's machines form a rooted tree. Design a protocol that returns the number of machines ...

Software Engineering Fundamentals
20
0
238 people solved
Jul 3, 2026
OpenAI logo
OpenAI
Medium
Software Engineer

Implement a Recoverable In-Memory Key-Value Store

Implement a Recoverable In-Memory Key-Value Store Design and implement a single-process key-value store whose working set is held in memory and whose ...

Software Engineering Fundamentals
9
0
75 people solved
Jun 29, 2026
OpenAI logo
OpenAI
Medium
Software Engineer

Implement a Simple Memory Allocator

Design and implement a simplified memory allocator exposing malloc(size) and free(ptr) over a single fixed-size heap (a contiguous byte array). The al...

Software Engineering Fundamentals
34
0
362 people solved
May 29, 2026
OpenAI logo
OpenAI
Medium
Software Engineer Locked

Refactor a Chatbot into Clean Object-Oriented Components

Prepare for a OpenAI software engineering interview question about refactor a chatbot into clean object-oriented components. The prompt highlights pra...

Software Engineering Fundamentals
11
0
114 people solved
Jun 22, 2026
OpenAI logo
OpenAI
Medium
Machine Learning Engineer

Debug a Concurrent Job Scheduler

You are handed a buggy Python job scheduler that runs many independent jobs concurrently. Each job has an ID, a callable to execute, a maximum retry c...

Software Engineering Fundamentals
48
0
396 people solved
Apr 3, 2026
OpenAI logo
OpenAI
Medium
iOS EngineerSenior+

Implement A Mobile Chat Interface In An Existing Codebase

You are given an existing mobile codebase and asked to implement a ChatGPT-style chat screen in about 40 minutes. Describe how you would read the proj...

Software Engineering Fundamentals
9
0
67 people solved
Jul 3, 2026
OpenAI logo
OpenAI
Medium
Machine Learning Engineer

Explain KV cache in Transformer inference

Question In Transformer-based large-language-model inference, what is a key-value (KV) cache? Give a complete, systems-level explanation that covers: ...

Software Engineering Fundamentals
227
1
1548 people solved
Jan 6, 2026
OpenAI logo
OpenAI
Medium
Machine Learning Engineer

Design First-Fit and Best-Fit Memory Allocation

Design First-Fit and Best-Fit Memory Allocation Design a simplified allocator over one contiguous arena of N bytes. It supports: - allocate(size, stra...

Software Engineering Fundamentals
5
0
56 people solved
Apr 19, 2026
OpenAI logo
OpenAI
Hard
Machine Learning Engineer

Analyze matrix multiplication complexity

In an ML coding interview, you're handed a PyTorch file and asked a series of complexity questions about the operations in it. One of them: Given two ...

Software Engineering Fundamentals
75
0
528 people solved
Feb 11, 2026
OpenAI logo
OpenAI
Hard
Machine Learning Engineer Locked

Design an Extensible Simulation Engine

This question evaluates object-oriented design, state modeling, API design, modularity, testability, and the ability to architect an extensible simula...

Software Engineering Fundamentals
9
0
139 people solved
Apr 3, 2026
OpenAI logo
OpenAI
Hard
Software Engineer

Build a Reliable Streaming Chat UI

You are building a React-based chat interface where assistant responses stream into the UI token by token in real time (the same UX as a typical LLM c...

Software Engineering Fundamentals
16
0
178 people solved
Apr 4, 2026
OpenAI logo
OpenAI
Hard
Software Engineer

Model particle hits on a screen

A point source at (0, 0) emits particles toward an infinite vertical screen located at x = 1. For each particle, sample an angle theta uniformly from ...

Software Engineering Fundamentals
45
0
408 people solved
Feb 22, 2026
OpenAI logo
OpenAI
Hard
Machine Learning Engineer

Explain what torch.distributed.barrier does

Question In PyTorch distributed training, what does torch.distributed.barrier() do? Follow-ups - Give an example of when you would use it. - What are ...

Software Engineering Fundamentals
14
0
229 people solved
Dec 15, 2025
OpenAI logo
OpenAI
Medium
Software Engineer

Implement an Extensible Chatbot App

Implement a ChatApp class that processes user messages and routes them to bot responders. The system must support multiple bot types, and the design m...

Software Engineering Fundamentals
22
0
349 people solved
Apr 26, 2026
OpenAI logo
OpenAI
Medium
Software Engineer Locked

Design a social network with snapshots

This question evaluates understanding of data structures, graph representations, immutability and snapshot/versioning strategies for in-memory systems...

Software Engineering Fundamentals
37
0
314 people solved
Nov 16, 2025
OpenAI logo
OpenAI
Hard
Software Engineer

Explain JS threading and useState vs useRef

Answer the following conceptual questions about JavaScript and React: 1. JavaScript and multithreading - How does JavaScript's execution model wo...

Software Engineering Fundamentals
10
0
116 people solved
Dec 6, 2025

Explore more OpenAI Software Engineering Fundamentals interview questions

Real questions from candidate reports, grouped by role, topic and company.

Other categories at OpenAI
Software Engineering Fundamentals questions at other companies
Browse all
OpenAI Software Engineering Fundamentals Questions (Updated 2026) | PracHub