← Questions

Longest substring without repeating characters

0
MetaMicrosoftSnowflake+1CodingLast asked Jul 2026

A coding interview question asked in Netflix's technical phone screen and at Microsoft, Meta and 1 more company, last asked Jul 2026. It tests sliding window, hash maps and strings.

Given a string, return the length of its longest substring that contains no repeated character.

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
  • Microsoft · Technical phone screen · Last asked Nov 202560 min · One technical round
  • Meta · Technical phone screen · Last asked Sep 202545 min · Two coding problems in CoderPad, about 20 minutes each · Usually no AI; some newer screens are AI-assisted
  • Snowflake · Coding · Last asked Sep 202560 min · Live coding; senior loops may agree a small storage component together, then build it

What it tests

sliding window · hash maps · strings

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