YourAlly

Stripe Senior staff coding interview questions

These are the 5 coding questions YourAlly has tagged for Stripe 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 Stripe Senior staff coding loopPractice Stripe coding questions

Product of Array Except SelfFree to read

Given an integer array nums, return an array answer such that answer[i] is equal to the product of all the elements of nums except nums[i]. You must write an algorithm that runs in O(n) time and does not use division.

Example 1: Input: nums = [1,2,3,4] Output: [24,12,8,6]

Example 2: Input: nums = [-1,1,0,-3,3] Output: [0,0,9,0,0]

Constraints: 2 <= nums.length <= 100000 -30 <= nums[i] <= 30 The product of any prefix or suffix of nums is guaranteed to fit in a 32-bit integer

4 more coding questions

  1. Binary Tree Level Order Traversal Locked
  2. Group Anagrams Locked
  3. Top K Frequent Elements Locked
  4. Two Sum Locked

Sign up free to practice all 5

Related pages

More Stripe Senior staff rounds

Stripe coding at other levels

Other companies at this level

Company guide

Stripe interview guide in Academy