Search
⌘K
Leetcode 3. Longest Substring Without Repeating Characters
Find the length of the longest contiguous substring that contains no repeated characters. This is a classic sliding-window / two-pointer problem where you track seen characters to expand and contract the window efficiently (linear-time expected).
Asked at:
Goldman Sachs
Microsoft
Apple
Autodesk
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Mid May, 2026
Apple
Manager
Early May, 2026
Autodesk
Senior
Mid April, 2026
Goldman Sachs
Senior
Leetcode 3. Longest Substring Without Repeating Characters
Hello Interview Premium
Your account is free and you can post anonymously if you choose.