Longest Substring Without Repeats
Hard · Strings
Write a function longestUniqueSubstring that returns the length of the longest substring of s in which no character appears twice.
A substring is a continuous part of the string. For an empty string return 0.
Next: Sort by Multiple Keys