ShardUp
About
Members
Events
Contests
HireUp
Practice
Join
Longest Substring Without Repeating Characters
Medium
String
Sliding Window
Hash Table
Amazon
Meta
Back to problems
Description
Submissions
Given a string, print the length of the longest substring that contains no repeated characters. Input format: - One line: s
Constraints
0 <= s.length <= 2 * 10^5
Sample tests
Sample 1
Input
abcabcbb
Output
3
Sample 2
Input
bbbbb
Output
1
No submissions yet.
Sign in to submit
:)