YourAlly

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

  1. Binary Tree Maximum Path Sum Locked
  2. Group Anagrams Locked
  3. Product of Array Except Self Locked
  4. Two Sum Locked
  5. Word Ladder Locked

Sign up free to practice all 6

Related pages

More OpenAI Senior EM rounds

OpenAI coding at other levels

Other companies at this level

Company guide

OpenAI interview guide in Academy