OpenAI ML Interview Questions
32 real machine-learning interview questions reported from OpenAI.
Practice on the problems board →IP to CIDR
IPv4 Iterator and CIDR Problem This question explores how IPv4 addresses can be represented, iterated over, and…
Coding & Leetcode-style QuestionsResumable Iterator
Problem: Implement a Resumable Iterator Design a ResumableIterator class that wraps around any iterable e.g., list,…
Coding & Leetcode-style QuestionsTransformers Debugging
ML Debugging Interview: Transformers KV-Cache & Autoregressive Generation Context You are implementing a mini GPT-style…
Deep Learning & ArchitecturesReliable LLM evaluation pipeline
Question OpenAI Interview Question: Reliable LLM Evaluation Pipeline You are building an internal evaluation pipeline…
ML Fundamentals & AlgorithmsSocial Network with Immutable Snapshots + Followers Index + Recommendations
Social Network with Point-in-Time Snapshots Context You are building an in-memory social network. Users can follow each…
Coding & Leetcode-style QuestionsNoisy Human Data Classifier Analysis
Noisy Human Data Classification Problem Setup Sometimes, the data we trust the most hides the deepest flaws. Imagine a…
ML Fundamentals & AlgorithmsLLM conceptual questions (Not tied with a particular company)
Conceptual Questions on Transformers and Language Models These questions and answers cover foundational concepts…
Research & Paper UnderstandingImplement an in-memory TTL cache (optionally LRU)
TTL Cache Interview Question Set Question 1 — Basic TTL Cache Implement an in-memory TTLCache with the following APIs:…
Coding & Leetcode-style QuestionsClassifier Analysis
Classification Analysis Problem Setup Let's say we've designed a new image classifier, and will perform full data and…
ML Fundamentals & AlgorithmsPython Dependency Version Compatibility Check & Adaptive Binary Search
Interview Question: Version Compatibility Search with Complex Non-Monotonic Behavior You are given a system that…
Coding & Leetcode-style QuestionsLinear Algebra (BP)
Distributed Systems + Machine Learning Coding Interview Implement Forward and Backward Passes for a Sharded 2-Layer MLP…
Deep Learning & ArchitecturesChatbot Code Refactoring
Chatbot Code Refactoring You are given a legacy Python chat-bot system used internally by an AI company. The current…
System Design for MLMachine Trees
Distributed Machine Tree Overview You are given a cluster of machines organized as an N-ary tree. Each machine is…
Coding & Leetcode-style QuestionsSystem design: iterative data mining and model training for multi modality foundational model training
Topic Design a system to mine novel, high-quality training data from a massive noisy unlabeled corpus e.g., 100M+…
System Design for MLProblem: CI/CD Job Scheduler Design using Kubernetes and Docker
Problem: CI/CD Job Scheduler Design using Kubernetes and Docker Problem Definition Design a scalable, fault-tolerant…
System Design for MLdesigning iterators
Problem: Design and Implement a Resumable Iterator You are asked to design and implement a Resumable Iterator . Unlike…
Coding & Leetcode-style QuestionsToy Language Type System
Interview Question: Toy Language Type System OVERVIEW Your task is to design a miniature type system for a toy…
Coding & Leetcode-style QuestionsML Debugging (Transformer)
Question Transformer Debugging + Follow-up Modification Question You are given a small GPT-style transformer…
Deep Learning & ArchitecturesApplied Stats: Distributed Averaging Under Noisy Communication
Distributed Averaging Under Noisy Communication You are given a fully connected network of N nodes. Node i holds a…
ML Fundamentals & AlgorithmsDesign a hosted notebook platform for interactive code execution
Design a Hosted Notebook Platform for Interactive Code Execution Design a cloud-hosted notebook platform similar to a…
System Design for MLIn-Memory Rate Limiter
In-Memory Rate Limiter Problem Implement a thread-safe in-memory RateLimiter that decides whether a request for a given…
Coding & Leetcode-style QuestionsGrid Infection and Immunity Simulation
Grid Infection and Immunity Simulation You are given an n × m 2D grid representing a field e.g., wheat plants or people…
Coding & Leetcode-style QuestionsGPU Credits 2
GPU Credit Grants Difficulty: Hard | Tags: Heap, Greedy, Design Implement a GPU credits ledger that supports creating…
Coding & Leetcode-style QuestionsKV Store
Interview Question: Design a Time-Based Key-Value Data Structure Design a time-based key-value data structure that can…
Coding & Leetcode-style Questionssimulate the change directory command
Simulate the cd command Difficulty: Medium | Tags: Strings, Stack, Simulation Implement a small command-line program to…
Coding & Leetcode-style QuestionsDesign a Crossword Puzzle Solver
Interview Question: Design a Crossword Puzzle Solver Problem Overview You are asked to design and implement a system…
System Design for MLDistributed Machine Cluster Count
Distributed Machine Cluster Count and Topology Company: OpenAI Category: Coding / Distributed Systems Role: Software…
Coding & Leetcode-style QuestionsBalanced Tag-Pair Sequence
QUESTION: Balanced Tag-Pair Sequence You are building a content schedule using three content types: AI , Human , and…
Coding & Leetcode-style QuestionsSystem Design: Chess Game
Design Chess.com Online Chess Game --- Problem Statement Design the backend system for an online chess platform…
System Design for MLImplement a Unix-like `cd` Command (with Symlink Follow-up)
Implement a Unix-like cd Command with Symlink Follow-up Problem Implement a simplified Unix-like cd change directory…
Coding & Leetcode-style QuestionsBattle Monsters
Two-Team Turn-Based Battle Simulator You are asked to design and implement the core battle logic for a simple…
Coding & Leetcode-style QuestionsSimulating Particle Hits on an Infinite Screen
Interview Question: Simulating Particle Hits on an Infinite Screen You are given a simple physical scattering model. A…
ML Fundamentals & Algorithms