Openai Software Engineer Interview Questions
Master your tech interview with our curated database of real questions from top companies.
Implement in-memory DB querying
Question Implement an in-memory database that supports: 1. Querying the whole table and returning only selected columns (projection). 2. Adding WHERE ...
Design GPU credit allocator
System Design: GPU Credits Allocation and Fair Usage Context You are designing a multi-tenant platform that provides access to GPU compute across many...
Design in-memory database API
In-Memory Database: Insert, Query, and Indexing Context You are to design a minimal, single-process, in-memory database to be embedded in a service. T...
Explain your perspective on AI safety
You are working in a company that builds and deploys advanced AI systems (e.g., large language models, recommendation systems, vision models) that are...
Design a URL shortening service
Design a scalable backend service for shortening URLs (similar to popular URL shortener products). Describe a system that supports at least the follow...
Design reliable high-volume chatbot system
You are designing the backend for a chatbot / AI assistant service (similar to a support bot or meeting assistant). Many users may send messages at th...
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...
Simulate turn-based monster team battle
Design an object-oriented model and implement the core battle logic for a turn-based fight between two teams of monsters. The system should simulate t...
Design a distributed crossword solving service
You are asked to design a backend service that can solve crossword puzzles at scale. A single puzzle instance consists of: - A crossword board (grid) ...
Design an online ads serving system
System Design: Low-Latency Targeted Ad Serving (≤100 ms E2E) You are designing an online advertising serving system for web/app inventory with a stric...
Design a parser for a hypothetical language
You are given a set of syntax rules for a hypothetical programming language written in BNF/EBNF. Design data structures and algorithms that: ( 1) pars...
Implement KV store and plan type conversions
Part 1 — Versioned key-value store: Implement a data structure with set(key, value, t) and get_at(key, t) that returns the value for key whose timesta...
Design a persistent key-value store
Design and implement an in-memory key-value store with a 'medium' layer that serializes the store to bytes for persistence. Provide four functions: se...
Design an AI chatbot with browser storage
System Design: Browser-Only Chatbot With Streaming and No Server-Side Conversation Storage Context Design an AI chatbot where all user messages and co...
Implement and Debug Backprop in NumPy
Two-Layer Neural Network: Backpropagation and Gradient Check (NumPy) Context You are implementing a fully connected two-layer neural network for multi...
Design a CI/CD pipeline
Design a CI/CD Pipeline for a Microservices Platform Context You are designing a CI/CD system for a containerized microservices platform deployed to c...
Design credit balance with vector-clock expirations
Credit Balance Service with Vector-Clock Expiries You are designing a backend service that maintains per-user promotional credits. Credits are granted...
Implement compile-time function type verification
Implement a C++20 compile-time utility to verify whether a callable matches a target function type. Requirements: create a primary template is_callabl...
Design a minimal ChatGPT with presets
System Design: Minimal ChatGPT-like Service With Reusable Presets Context Design a multi-tenant conversational AI service that supports reusable prese...
Design multi-tenant CI/CD platform
System Design: Multi‑Tenant CI/CD Platform Context Design a cloud-native, multi-tenant CI/CD platform that integrates with popular source control prov...