OpenAI Senior EM coding interview questions
These are the 6 coding questions YourAlly has tagged for OpenAI at Senior EM. Senior EM (M2) is the level where you manage other managers.
A coding round at a large tech company usually runs 45 to 60 minutes with one or two problems. You write code that runs, test it on your own examples and state its time and space cost. Manager loops include less coding, but you still need to reason about code and review it well.
Practice a mock OpenAI Senior EM coding loopPractice OpenAI coding questions
Merge k Sorted ListsFree to read
You are given an array of k linked-lists lists, each linked-list is sorted in ascending order. Merge all the linked-lists into one sorted linked-list and return it.
Example 1: Input: lists = [[1,4,5],[1,3,4],[2,6]] Output: [1,1,2,3,4,4,5,6]
Example 2: Input: lists = [] Output: []
Constraints: 0 <= k <= 10000 0 <= total number of nodes across all lists <= 200000 -100000 <= Node.val <= 100000
5 more coding questions
- Binary Tree Maximum Path Sum Locked
- Group Anagrams Locked
- Product of Array Except Self Locked
- Two Sum Locked
- Word Ladder Locked
Related pages
More OpenAI Senior EM rounds
- System design 7 questions
- Project retrospective 3 questions
OpenAI coding at other levels
- Senior 7 questions
- Staff 6 questions
- Senior staff 6 questions
Other companies at this level
- Airbnb Senior EM 4 questions
- Anthropic Senior EM 4 questions
- Apple Senior EM 4 questions
- Google Senior EM 14 questions
- LinkedIn Senior EM 4 questions
- Meta Senior EM 14 questions