Openai Software Engineer Coding & Algorithms Interview Questions
Practice the exact questions companies are asking right now.

"10 years of experience but never worked at a top company. PracHub's senior-level questions helped me break into FAANG at 35. Age is just a number."

"I was skeptical about the 'real questions' claim, so I put it to the test. I searched for the exact question I got grilled on at my last Meta onsite... and it was right there. Word for word."

"Got a Google recruiter call on Monday, interview on Friday. Crammed PracHub for 4 days. Passed every round. This platform is a miracle worker."

"I've used LC, Glassdoor, and random Discords. Nothing comes close to the accuracy here. The questions are actually current — that's what got me. Felt like I had a cheat sheet during the interview."

"The solution quality is insane. It covers approach, edge cases, time complexity, follow-ups. Nothing else comes close."

"Legit the only resource you need. TC went from 180k -> 350k. Just memorize the top 50 for your target company and you're golden."

"PracHub Premium for one month cost me the price of two coffees a week. It landed me a $280K+ starting offer."

"Literally just signed a $600k offer. I only had 2 weeks to prep, so I focused entirely on the company-tagged lists here. If you're targeting L5+, don't overthink it."

"Coaches and bootcamp prep courses cost around $200-300 but PracHub Premium is actually less than a Netflix subscription. And it landed me a $178K offer."

"I honestly don't know how you guys gather so many real interview questions. It's almost scary. I walked into my Amazon loop and recognized 3 out of 4 problems from your database."

"Discovered PracHub 10 days before my interview. By day 5, I stopped being nervous. By interview day, I was actually excited to show what I knew."

"I recently cleared Uber interviews (strong hire in the design round) and all the questions were present in prachub."
"The search is what sold me. I typed in a really niche DP problem I got asked last year and it actually came up, full breakdown and everything. These guys are clearly updating it constantly."
Minimize deaths in spreading plant infection
You are given an m x n grid representing a garden: - 0: empty cell - 1: healthy plant - 2: infected plant The garden evolves day by day in the followi...
Compute Infection Time in a Grid
You are given an m x n grid where each cell is one of the following: - 0: empty - 1: healthy - 2: infected Every minute, each infected cell spreads th...
Implement follow graph with snapshots and recommendations
Design and implement an in-memory “social network” component that supports following/unfollowing, point-in-time (snapshot) queries, and a simple recom...
Implement IPv4 iterators and CIDR expansion
Problem: IPv4 Iterators and CIDR Expansion You are implementing utilities to iterate over IPv4 addresses. An IPv4 address is in dotted-decimal form: A...
Implement a persistent sharded key-value store
Problem Implement a simple key–value store that persists data on disk. You must store the data in fixed-size shards, where each shard is saved in one ...
Implement a Contiguous Memory Manager
You are asked to implement a contiguous memory manager for an array of n memory cells indexed from 0 to n - 1, where all cells are initially free. Sup...
Simulate a Turn-Based Two-Player Game
Design and implement a simulator for a two-player turn-based board game similar to tic-tac-toe. Requirements: - The game is played on an n x n board. ...
Implement map serialization and deserialization
You are given an in-memory map (dictionary) from strings to strings. Implement two functions: - string serialize(map<string, string> m) - map<string, ...
Implement KV store serialization
Implement serialization and deserialization for an in‑memory key‑value store to and from a contiguous bytes buffer. Keys are UTF‑8 strings; values may...
Implement Time-Aware GPU Credit Ledger
Implement an in-memory GPU credit ledger with three operations: - create_grant(amount, start_time, expire_time): add a credit grant. The grant is acti...
Compute infection spread time
You are given an m x n grid representing a population during an outbreak: - 0 = empty cell - 1 = healthy person - 2 = infected person Every minute, ea...
Implement a Simulated Memory Allocator
Implement a simulated memory allocator that supports allocate(size) and free(ptr) operations analogous to malloc and free. Treat memory as a contiguou...
Rebalance shard ranges under overlap limit
You maintain a set of data shards. Each shard owns an inclusive integer key range [start, end]. `python class Shard: id: str start: int en...
Implement type AST and infer generics
Toy language type system: AST + generic inference You are implementing a tiny type system for a toy language with: - Primitive types: char, int, float...
Implement an IPv4 Range Iterator
Implement a class that iterates through IPv4 addresses across multiple inclusive ranges. Each range is given as a pair of IPv4 addresses in dotted-dec...
Implement an IPv4 Iterator
Implement an iterator over IPv4 addresses. Start with a basic version: 1. Given a start IPv4 address and an end IPv4 address, support forward iteratio...
Compute Plant Infection Stabilization
You are given an m x n grid of plants. Cell types: - X: infected plant - .: healthy plant - I: immune plant (used only in some variants) Two cells are...
Implement follow graph with snapshots
Problem You are building an in-memory social network relationship store that supports time-travel queries. Users are identified by integers. A directe...
Implement an expiring GPU-credit manager
Implement an expiring GPU-credit manager for a cloud provider. Each user receives credit grants with an amount and an expiration timestamp. Support: (...
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...