Home
Topics
Practice
Roadmap
DSA Tracker
Code Editor
Tech Blogs
More
Sign in
Get started
Loading question...
Feedback
Longest Substring Without Repeating Characters
Medium
00:00
0 users online
Share
Description
Solution
Submissions
Discussion
Given a string s, find the length of the longest substring without repeating characters.
Sample Input:
"abcabcbb"
Sample Output:
3
Hints
Hint 1
Use sliding window technique
Hint 2
Use a Set or Map to track characters in current window
Hint 3
Move left pointer when duplicate found
Code Editor
Reset
Run
Save
Loading...