YourAlly

Netflix Senior coding interview questions

These are the 8 coding questions YourAlly has tagged for Netflix at Senior. On the YourAlly ladder this is Senior, the same level as Google L5, Meta E5 and Amazon L6.

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 the bar is a correct, tested solution you reach mostly on your own, with the trade-offs said out loud.

Practice a mock Netflix Senior coding loopPractice Netflix coding questions

Longest Binge Streak With SkipsFree to read

days[i] is 1 if a member watched on day i and 0 if not. A streak may forgive up to k missed days. Return the length of the longest run of consecutive days containing at most k zeros.

Input: days = [1,1,1,0,0,0,1,1,1,1,0], k = 2 Output: 6

What a strong answer covers

  • Sliding window with a zero count
  • Shrinks only while zeros > k
  • O(n) time, O(1) space
  • Handles k = 0 and k larger than the zero count

7 more coding questions

  1. Maximum Prefill Jobs Before Deadlines Locked
  2. Minimum Encoding Pipeline Completion Time Locked
  3. Narrowest Window Covering Every Region Locked
  4. Choose Next Bitrate Locked
  5. Longest Stable Quality Window Locked
  6. Playlist Prefetch Window Locked
  7. Segment Retry Backoff Locked

Sign up free to practice all 8

Related pages

More Netflix Senior rounds

Netflix coding at other levels

Other companies at this level

Company guide

Netflix interview guide in Academy