YourAlly

OpenAI Senior staff coding interview questions

These are the 6 coding questions YourAlly has tagged for OpenAI at Senior staff. On the YourAlly ladder this is Senior staff, the same level as Google L7, Meta E7 and Amazon L8.

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. At this level coding is often a smaller part of the loop, but the bar for clarity and speed stays high.

Practice a mock OpenAI Senior staff coding loopPractice OpenAI coding questions

Group AnagramsFree to read

Given an array of strings strs, group the anagrams together. You can return the answer in any order.

Example 1: Input: strs = ["eat","tea","tan","ate","nat","bat"] Output: [["eat","tea","ate"],["tan","nat"],["bat"]]

Example 2: Input: strs = [""] Output: [[""]]

Constraints: 1 <= strs.length <= 20000 0 <= strs[i].length <= 100 strs[i] consists of lowercase English letters

5 more coding questions

  1. Binary Tree Maximum Path Sum Locked
  2. Merge k Sorted Lists 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 staff rounds

OpenAI coding at other levels

Other companies at this level

Company guide

OpenAI interview guide in Academy