All companies
OpenAI logo

OpenAI

6 questions · Coding · System design · Behavioral

Given course prerequisites, decide whether all courses can be finished.

Coding

ApproachBuild a directed graph and run topological sort (Kahn/BFS or DFS cycle detection).

EvaluatesRecognizing a cycle-detection problem behind a word problem.

Design and implement an LRU cache with O(1) get and put.

Coding

ApproachCombine a hash map with a doubly linked list; move touched nodes to the front, evict from the tail.

EvaluatesComposing data structures to hit tight time bounds and getting the eviction bookkeeping right.

Design a search autocomplete / typeahead service.

System design

ApproachTrie or prefix index, top-k ranking, caching, and updating suggestions from live traffic.

EvaluatesLatency budget, data-structure choice, and freshness vs. cost.

Design a system to run and evaluate model prompts at scale.

System design

ApproachJob queue, caching identical calls, cost tracking, and result storage/eval.

EvaluatesPractical infra thinking around LLM workloads.

Describe a project you are most proud of and your specific contribution.

Behavioral

ApproachAnchor to measurable impact; be crisp about what YOU did vs. the team, and the trade-offs you made.

EvaluatesOwnership, impact, and honest self-attribution.

Tell me about a time you failed and what you changed afterward.

Behavioral

ApproachPick a real failure, own it without blaming others, and show the concrete lesson you applied later.

EvaluatesSelf-awareness, accountability, and growth.

Practice these with a free AI mock

Get graded on your real answers, with feedback after every round.

Practice free
OpenAI Interview Questions | Novatypalcv