Skip to content

#3 - Longest Substring Without Repeating Characters

MediumArray / String
Open on LeetCode

Given a string s, find the length of the longest substring without repeating characters.

InputOutput
s = "abcabcbb"3 (substring "abc")
s = "bbbbb"1 (substring "b")
s = "pwwkew"3 (substring "wke")

Released under the MIT License.