Coding Challenge

Longest Substring Without Repeating Characters

Medium
stringsliding-window

Find the longest substring with all unique characters.

Return the length of the longest substring of the input string that contains no repeated characters.

Examples

Input: s = "abcabcbb"

Output: 3

Constraints

  • 0 <= s.length

Preparing your coding workspace...