Real-time text analytics service enforcing uniqueness constraints
Implement a Python function returning the length of the longest substring without repeating characters. Follow-up: modify it to return all substrings that meet this criterion.
Sliding window with hash map for indices; for follow-up, track start positions and collect substrings of max length.