DrawCode Practice Problem

Longest Substring Without Repeating Characters

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

Examples

Input

s = "abcabcbb"

Output

3

The answer is "abc", length 3.

Input

s = "bbbbb"

Output

1

Constraints


Interactive Visualizer Workspace

Explore step-by-step interactive animations, memory state tracking, and live multi-language execution in DrawCode.

Launch Interactive Visualizer