Longest Substring with No Repeating Characters
Medium

Problem Statement

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

Examples

1Example 1
Input:
{ "s": "abcabcbb" }
Output:
3
2Example 2
Input:
{ "s": "bbbbb" }
Output:
1
3Example 3
Input:
{ "s": "pwwkew" }
Output:
3
Loading...

Sign in to Run Code and Submit