Medium
Longest Substring Without Repeating Characters
Topic: Sliding Window •
Acceptance: 50%
Given a string `s`, find the length of the longest substring without duplicate characters.
Input Format:
A single line containing string s.
Output Format:
Print the length of the longest substring.
Sample Example:
Sample Input:
abcabcbbSample Output:
3
Sandboxed Engine
Ready to test. Click Test All Cases or Submit Solution to evaluate your code.
// Code Playground Cloud Execution Engine v2.4
// Write your code and click 'Run Code' to execute.
$ ready
Standard Input (stdin):
Your code can read standard input via
stdin.