OpenAI LeetCode Questions
17 questions all-time · 1 easy · 14 medium · 2 hard
| # | Problem | Difficulty | Frequency | Acceptance |
|---|---|---|---|---|
| 1 | Design SQL Array, Hash Table, String, Design | Medium | 100 | 0.6% |
| 2 | Design Memory Allocator Array, Hash Table, Design, Simulation | Medium | 91 | 0.5% |
| 3 | Encode and Decode Strings Array, String, Design | Medium | 89 | 0.5% |
| 4 | Flatten Nested List Iterator Stack, Tree, Depth-First Search, Design, Queue, Iterator | Medium | 86 | 0.7% |
| 5 | Time Based Key-Value Store Hash Table, String, Binary Search, Design | Medium | 79 | 0.5% |
| 6 | IP to CIDR String, Bit Manipulation | Medium | 79 | 0.5% |
| 7 | Rotting Oranges Array, Breadth-First Search, Matrix | Medium | 76 | 0.6% |
| 8 | Design Excel Sum Formula Array, Hash Table, String, Graph Theory, Design, Topological Sort, Matrix | Hard | 69 | 0.4% |
| 9 | Simplify Path String, Stack | Medium | 65 | 0.5% |
| 10 | Web Crawler Multithreaded Depth-First Search, Breadth-First Search, Concurrency | Medium | 50 | 0.5% |
| 11 | Largest Local Values in a Matrix Array, Matrix | Easy | 50 | 0.9% |
| 12 | Asteroid Collision Array, Stack, Simulation | Medium | 50 | 0.5% |
| 13 | Trapping Rain Water Array, Two Pointers, Dynamic Programming, Stack, Monotonic Stack | Hard | 50 | 0.7% |
| 14 | Design Spreadsheet Array, Hash Table, String, Design, Matrix | Medium | 50 | 0.7% |
| 15 | Design Hit Counter Array, Binary Search, Design, Queue, Data Stream | Medium | 50 | 0.7% |
| 16 | Design Authentication Manager Hash Table, Linked List, Design, Doubly-Linked List | Medium | 50 | 0.6% |
| 17 | Snapshot Array Array, Hash Table, Binary Search, Design | Medium | 50 | 0.4% |
How to read this list
The tabs at the top split the questions by how recently people said they were asked in interviews. "Last 30 Days" is the past month, "Last 3 Months" is the past quarter, and so on. "All Time" is every question on record for this company.
Frequency is a score from 0 to 100 for how often a question showed up in that time window. A higher number means it came up more often, so the list starts with the most common questions first. Acceptance is the share of submissions that pass on LeetCode. Click any question to open it on LeetCode.