MediumSliding Window· 61% acceptance
#592

Longest Substring Without Repeating 47

Medium

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

Example 1

Input: s = "fabcdefabcdefab"

Output: 6

Constraints

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

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

lengthOfLongestSubstring

← All practice problems