Longest substring without repeats

A code exercise of about 20 minutes: read the statement, solve «Longest substring without repeats» in the browser and get a review like in a real interview.

Code · 20 min
Loading…

Statement

Write longestUniqueSubstring(s): return the length of the longest contiguous run of s in which no character repeats. The text is ASCII.