Welcome to the Python screen.
The question is on your right: Longest Unique Message Substring. Read through the requirements first.
Run and submit your code as often as you need. You also have five interviewer messages this session - want to talk through your approach, or are you ready to start coding?
In Providence messaging and note-entry surfaces, repeated characters can appear in free-text input. Write a function that returns the length of the longest substring in a string s that contains no repeated characters.
ss with all unique charactersA substring must be contiguous. The function should run efficiently for large inputs.
def length_of_longest_substring(s):