Longest Substring With Non Repeating Characters
medium
1. You are given a string. 2. You have to find the length of the longest substring of the given string that contains all non-repeating characters.
Constraints
1 <= length of string <= 10^5
Format
Input
A string
Output
A number representing the length of longest substring with unique characters.
Example
Sample Input
aabcbcdbca
Sample Output
4
Question Video