โ† All coding problems

Longest substring without repeats

HardSliding window

Return the length of the longest substring of s that has no repeating characters.

Function
function solve(s)
Example 1
s = "abcabcbb"
โ†’ 3

Submit also runs 4 hidden tests, including edge cases.

console.log output is shown below