All challenges

Algorithm challenge · DSA

Longest Substring Without Repeating Characters

Difficulty

medium

Time

~25m

Format

Single

Grading

Auto-graded

#python#javascript#typescript#go#java#cpp#rust#dsa#sliding-window#strings
Mission file // read carefullymedium

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

s = "abcabcbb"  =>  3   ("abc")

Build with

lengthOfLongestSubstring(s: string) → int
PythonJavaScriptTypeScriptGoJavaC++Rust
5 tests · 1 hidden
Auto-graded on submit
Start challenge

Sign in to save your progress.