← Questions

Longest run of identical consecutive items

0
NetflixCodingLast asked Jul 2026

A coding interview question asked in Netflix's technical phone screen, last asked Jul 2026. It tests arrays, strings and two pointers.

Given a string, return the length of the longest run of one character repeated back to back. This is not the most frequent character: in "aabbbcbbbb", b occurs 7 times, but its longest unbroken run is 4.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Netflix · Technical phone screen · Last asked Jul 202660 min · Coding, practical problem solving, or SQL and pipeline design, depending on the org

What it tests

arrays · strings · two pointers

Your code and the AI tutor open when you unlock this question.