Your question is Unique Substring Sliding Window. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Roblox experiences may analyze a player's chat message before displaying or processing it. Given a string message, find the length of the longest contiguous substring containing no repeated characters.
A substring must contain consecutive characters from message, and character comparisons are case-sensitive. For example, A and a are considered different characters.
Implement longest_unique_substring(message).
message, a string.0 when message is empty.def longest_unique_substring(message):