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, find the length of the longest substring without repeating characters.
Sample Input:
"abcabcbb"
Sample Output:
3
Hints
Hint 1
Use a sliding window approach with two pointers
Hint 2
Keep track of characters in the current window using a set or map
Hint 3
Move the left pointer when a duplicate is found
Code Editor
Reset
Run
Save
Loading...