Longest Substring Without Repeating Characters

Problem Description
Medium
Given a string s, find the length of the longest substring without repeating characters.
Tags:
Strings Dynamic Programming
Constraints:
  • Time Limit: 1000 ms
  • Memory Limit: 128 MB
Sample Test Cases:
Example 1:
Input:
"abcabcbb"
Expected Output:
3
Example 2:
Input:
"bbbbb"
Expected Output:
1
Example 3:
Input:
"pwwkew"
Expected Output:
3
Code Editor