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
- Binary Tree Maximum Path Sum Locked
- Merge k Sorted Lists Locked
- Product of Array Except Self Locked
- Two Sum Locked
- Word Ladder Locked
Related pages
More OpenAI Senior staff rounds
- System design 7 questions
- Behavioral 7 questions
- Project retrospective 3 questions
OpenAI coding at other levels
Other companies at this level
- Adobe Senior staff 4 questions
- Airbnb Senior staff 4 questions
- Amazon L8 6 questions
- Anthropic Senior staff 5 questions
- Apple Senior staff 7 questions
- Cisco Senior staff 3 questions