Longest Substring Without Repeating Characters

easy
1.Given a string, find the length of the longest substring without repeating characters. 2.You have to complete the function lenghtofLongestSubstring which should return length of the longest substring without repeating characters. 3.Example -For string abcabcbb the answer is 3 i.e abc input-format -------------------------- Single line containing a string S

Input Format

Single line containing a string S

Output Format

Return the length of the longest substring without repeating characters.

Constraints

1<=|s| <=200

Notice

Try First, Check Solution later

1. You should first read the question and watch the question video.
2. Think of a solution approach, then try and submit the question on editor tab.
3. We strongly advise you to watch the solution video for prescribed approach.

Example

Input
abcabcbb
Output
3
Previous
Longest Substring With Equal Number Of 0s And 1s
Next
Love For The Twins

Related Questions