Exercises/#12 Longest Substring Without Repeating Characters
#12

Longest Substring Without Repeating Characters

MediumπŸ”€ Strings
80 XP

Problem

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

Examples

Input: s = 'abcabcbb'
Output: 3 ('abc')

Input: s = 'bbbbb'
Output: 1 ('b')

Input: s = 'pwwkew'
Output: 3 ('wke')
sliding-windowhash-setstring
AI Assistantβ€” powered by AI

Unlock hints progressively β€” start gentle, go deeper only if needed.

πŸ’‘

Level 1: Gentle Nudge

A subtle direction

πŸ—ΊοΈ

Level 2: Approach

The algorithm to use

πŸ”

Level 3: Detailed

Step-by-step guidance

12 / 150

Your Solution

⚑ JavaScript

to save progress and use AI features