0 day streak

OpenAI coding interview questions

Big techProduct Global

Ranked by how often candidates report them. Each opens in the editor with hidden tests, an animated walkthrough and solutions in four languages; a question you solve once counts for every company that asks it.

0%ready
Your level: practise every reported question.
ProgressTitleDifficultyTopicHow often hereAlso asked atNext step
Time Based Key-Value StoreBasics Medium Binary Search Apple, Netflix, Uber +25 Solve
Design Memory AllocatorSimulation Medium Design Data Structures Nvidia, Rubrik, Tesla +7 Solve
Encode and Decode StringsString Basics Medium Arrays & Hashing Nvidia, Snowflake, CrowdStrike +2 Solve
Flatten Nested List IteratorStack Medium Design Data Structures LinkedIn, Airbnb, Tesla +7 Solve
Simplify PathStack Basics Medium Stack Meta, Snowflake, Grab +11 Solve
Web Crawler MultithreadedBFS / DFS Basics Medium Graphs Snowflake, Rubrik, Dropbox +1 Solve
Design Excel Sum FormulaDependency Graph Hard Design Data Structures Airbnb, Rippling, Waymo +2 Solve
IP to CIDRTricks to remember Medium Bit Manipulation Airbnb, Databricks, Cloudflare +3 Solve
Rotting OrangesMulti source BFS Medium Graphs Google, Amazon, Microsoft +48 Solve
LRU CacheLinked Lists Medium Design Data Structures Google, Amazon, Microsoft +140 Solve
Design Hit CounterQueue / Circular Buffer Medium Design Data Structures Google, Apple, Uber +21 Solve
Snapshot ArrayBasics Medium Binary Search Google, Apple, Netflix +9 Solve
Design Authentication ManagerHash Map + Heap Medium Design Data Structures X (Twitter), Confluent, IBM +1 Solve
Asteroid CollisionStack Basics Medium Stack Amazon, Microsoft, Nvidia +33 Solve
Trapping Rain WaterTwo Pointer Hard Arrays & Hashing Google, Amazon, Microsoft +88 Solve
Number of IslandsConnected Components Medium Graphs Google, Amazon, Microsoft +114 Solve
Alien DictionaryTopological Sort Hard Graphs Google, Amazon, Microsoft +20 Solve
Course Schedule IITopological Sort Medium Graphs Google, Amazon, Meta +42 Solve
Meeting Rooms IILine Sweep Medium Intervals Google, Amazon, Meta +50 Solve
Number of ProvincesConnected Components Medium Graphs Google, Uber, Pinterest +6 Solve
Kth Smallest Element in a Sorted MatrixBinary Search on Answer Space Medium Binary Search X (Twitter), Chewy, Brex +4 Solve
Maximal SquareSquares Medium Dynamic Programming Google, Amazon, Airbnb +14 Solve
Also reported, being added to AlgoRung (21)

Design SQL · Design Spreadsheet · Largest Local Values in a Matrix · Find Duplicate File in System · GPU credit ledger with expiring grants · Resumable iterator with pause and resume · Serialize and deserialize a key-value store with arbitrary characters · Versioned social graph queried at a timestamp · Durable segmented key-value store · Durable work queue with task dependencies · Dependency version checker for package constraints · Aggregate statistics over a machine topology tree · Rate limiter with global and per-user limits · Iterator over IPv4 addresses in a CIDR range · Count chat events in a recent time window · Text editor with undo and redo · Skip list from scratch · Poker hand winner simulation · Elevator scheduling simulation · Find and fix a race condition in concurrent code · Speed up a quadratic log parser

Questions people ask

What coding questions does OpenAI ask most?

Time Based Key-Value Store, Design Memory Allocator, Encode and Decode Strings, Flatten Nested List Iterator, Simplify Path, Web Crawler Multithreaded, Design Excel Sum Formula, IP to CIDR.

Which topics come up in OpenAI coding rounds?

design data structure, hash maps, strings, graphs, iterators, concurrency.

How hard are OpenAI coding questions?

Of the reported questions, 0 are easy, 19 medium and 3 hard. A 45 to 60 minute live interview where you solve one or two data-structures-and-algorithms problems while explaining your thinking. Interviewers score problem solving, code quality, testing and communication.