MediumSliding Window· 63% acceptance
#594

Longest Substring Without Repeating 49

Medium

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

Example 1

Input: s = "bcdefabcdefabcdef"

Output: 6

Constraints

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

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

lengthOfLongestSubstring

← All practice problems