MediumSliding Window· 49% acceptance
#597

Longest Substring Without Repeating 52

Medium

Return the length of the longest substring without repeating characters. Variant **#52**.

Example 1

Input: s = "efabcdefab"

Output: 6

Constraints

  • 0 <= s.length <= 5 * 10^4

Acceptance: 49% · Topics: sliding-window, hash-table, string

lengthOfLongestSubstring

← All practice problems