Marks :30
: 3 | : 0
Given a string $$$s$$$, find the length of the longest substring without repeating characters.
The first line contains an integer $$$n$$$ denoting the length of the string. The second line contains a string $$$s$$$ consisting of English letters, digits, and symbols.$$$(1\le n \le 5 \cdot 10^4).$$$
Output the longest substring without repeating characters
9 abcgracse
6
4 okuo
3
8 abcAacbB
5
5 bbbbb
1
6 $dgr$4
5
You need to login to view your submissions.
You need to login to view all submissions.
Result : Executed
Feel something is wrong with the test cases?
Result : Accepted
Test Cases :
But to Run or Submit the Problem, you need to Log In.
Continue to Log InYour challenge has been submitted successfully.
You will get a response soon via WhatsApp or Email.
Do let us know your issue.