Grids & Graph Search
Most OpenAI coding rounds ask you to build something, but pure algorithm questions still come up in two places. The HackerRank online assessment gives you about 110 minutes for two questions with the camera on, and it's mostly given to new-grad, non-US and Solutions candidates. Some candidates also get a live DSA round. Grid problems come up in both.
The grid problems don't need unusual algorithms. Each one has a slow version that passes the samples and then times out on a large hidden grid, like running one search per source, comparing regions cell by cell, or rescanning every k-by-k block. Nobody is there to answer questions on an assessment, so you have to work out the faster approach from the constraints. The faster approach usually does the shared work once. You put every source in one queue so the spread runs as a single search, or you turn each region into a key you can hash so matching becomes a set lookup. A two-dimensional window splits into two one-dimensional sweeps. After that, each cell gets touched a constant number of times.
OpenAIPremium lesson · Coding round
The 3 OpenAI problems are below.
- A Premium questionCoding · Medium
- A Premium questionCoding · Hard
- A Premium questionCoding · Hard
Each with hints, the follow-up and a tested solution.
Get the OpenAI questions$49 a year · all 100 companies · cancel anytime
From 20,000+ candidate reports, forum threads behind logins and write-ups in Chinese.
OpenAI interview guideKnow what OpenAI asks before you walk in.
31 coding · 6 system design · 19 behavioral questions
Get their questions first.
InterviewLegend is independent and not affiliated with or endorsed by any company it covers.