MediumSliding Window· 60% acceptance
#574

Longest Substring Without Repeating 29

Medium

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

Example 1

Input: s = "fabcdefabcdefabcd"

Output: 6

Constraints

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

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

lengthOfLongestSubstring

← All practice problems